Patchwork [8/8] qt4-tools-nativesdk: -arch is required for nativesdk build

login
register
mail settings
Submitter Saul Wold
Date May 13, 2011, 5:06 a.m.
Message ID <af22757737f3b5e2d58eba8c5e01176ac26592c5.1305263078.git.sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/3923/
State New, archived
Headers show

Comments

Saul Wold - May 13, 2011, 5:06 a.m.
From: Ilya Yanok <yanok@emcraft.com>

We need to pass correct -arch option to configure to fix building in
case of SDK_ARCH != BUILD_ARCH.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
---
 meta/recipes-qt/qt4/qt4-tools-nativesdk.inc |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Patch

diff --git a/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc b/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc
index f273c9f..5faf40c 100644
--- a/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc
+++ b/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc
@@ -25,6 +25,8 @@  LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=fbc093901857fcd118f065f900982c24 \
                     file://LICENSE.GPL3;md5=babc5b6b77441da277f5c06b2e547720 \
                     file://LGPL_EXCEPTION.txt;md5=411080a56ff917a5a1aa08c98acae354"
 
+require qt4_arch.inc
+
 # FIXME: make it work with "${STAGING_BINDIR_NATIVE}/pkg-config --cflags dbus-1"
 EXTRA_OECONF = "-prefix ${prefix} \
                 -qt-libjpeg -qt-gif -system-zlib \
@@ -37,6 +39,7 @@  EXTRA_OECONF = "-prefix ${prefix} \
                 -verbose -release -fast -static \
                 -platform ${TARGET_OS}-oe-g++ \
                 -xplatform ${TARGET_OS}-oe-g++ \
+                -arch ${@qt_arch(d)} \
                 -embedded -no-freetype -no-glib -no-iconv \
                 -qt3support \
                 -I${STAGING_DIR_HOST}${SDKPATHNATIVE}/usr/include \