]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
qt: Re-enable workaround for building on x86 for x86 target, also check for x86_64
authorOrmund Williams <ormundw@panix.com>
Wed, 13 Jan 2010 22:55:52 +0000 (17:55 -0500)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 18 Jan 2010 08:46:19 +0000 (09:46 +0100)
[Peter: combined x86 + x86-64 logic, simplified]
Signed-off-by: Ormund Williams <ormundw@panix.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/qt/qt.mk

index a3a466ae37c4f57007c67a8ea7f894d88ebb6923..78b2eec3a45f73d4317c929b23c330761af4f8d5 100644 (file)
@@ -352,6 +352,16 @@ endif
 
 BR2_PACKAGE_QT_EMB_PLATFORM:=$(call qstrip,$(BR2_PACKAGE_QT_EMB_PLATFORM))
 
+# x86x86fix
+# Workaround Qt Embedded bug when crosscompiling for x86 under x86 with linux
+# host. It's unclear if this would happen on other hosts.
+ifneq ($(findstring pc-linux,$(BR2_GNU_BUILD_SUFFIX)),)
+ifneq ($(findstring x86,$(BR2_PACKAGE_QT_EMB_PLATFORM)),)
+QT_CONFIGURE+= -platform linux-g++
+endif
+endif
+# End of workaround.
+
 # Figure out what libs to install in the target
 QT_LIBS=#empty
 ifeq ($(BR2_PACKAGE_QT_GUI_MODULE),y)