Skip to contentSkip to conversation

libsdl2: add bbappend to fix build with mingw

PATCH New Ross Burton 1 participant 1 message Jun 5, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libsdl2: add bbappend to fix build with mingw

We need to disable X11 as we do with libsdl1, and also convince libtool to stop trying to be clever so the build doesn't break.

---
 recipes-graphics/libsdl2/libsdl2_%.bbappend | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 recipes-graphics/libsdl2/libsdl2_%.bbappend
recipes-graphics/libsdl2/libsdl2_%.bbappend new file +10 -0
new file mode 100644
index 0000000..97fd96e
@@ -0,0 +1,10 @@
+PACKAGECONFIG_remove_mingw32_class-nativesdk = "x11"
+
+# libtool doesn't think it can link windres output (COFF) with libtool objects
+# (COFF) , but it can.  This might be because file misidentifies version.o:
+#
+# version.o: Targa image data - Map (0) 1 x 65536 x 0 +862 "\004\001.rsrc"
+#
+# Telling libtool to be dumb and just pass the input to the underlying tools
+# works fine.
+EXTRA_OECONF_append_mingw32 = " lt_cv_deplibs_check_method=pass_all"
Signature · 1 line
2.11.0