]> code.ossystems Code Review - openembedded-core.git/commitdiff
qt4: Enable accessibility and sm option for LSB.
authorJingdong Lu <jingdong.lu@windriver.com>
Wed, 19 Jan 2011 08:19:05 +0000 (16:19 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 20 Jan 2011 21:37:01 +0000 (21:37 +0000)
LSB library checks will look for some symbols of qt4 libraries. Enable "accessibility" and "sm" in order to pass the LSB test.

Signed-off-by: Jingdong Lu<jingdong.lu@windriver.com>
meta/classes/qmake2.bbclass
meta/recipes-qt/qt4/qt4-x11-free_4.6.3.bb
meta/recipes-qt/qt4/qt4.inc

index 37721898d6aebb04c677e9862c36aa81a497f037..5eebd8ec42e3c015e0ed0e9d1d258548bbcd0f0d 100644 (file)
@@ -19,5 +19,6 @@ export OE_QMAKE_INCDIR_QT = "${STAGING_INCDIR}/qt4"
 export OE_QMAKE_LIBDIR_QT = "${STAGING_LIBDIR}"
 export OE_QMAKE_LIBS_QT = "qt"
 export OE_QMAKE_LIBS_X11 = "-lXext -lX11 -lm"
+export OE_QMAKE_LIBS_X11SM = "-lSM -lICE"
 export OE_QMAKE_LRELEASE = "${STAGING_BINDIR_NATIVE}/lrelease4"
 export OE_QMAKE_LUPDATE = "${STAGING_BINDIR_NATIVE}/lupdate4"
index 0a03e9b5a383ee28dc0f2434b6f536abbd85e200..f13b94769f00e2928a7089cb376e0ec1be5ad0e2 100644 (file)
@@ -1,7 +1,7 @@
 require qt4-x11-free.inc
 require qt-4.6.3.inc
 
-PR = "r1"
+PR = "r2"
 
 QT_CONFIG_FLAGS += " -xrandr "
 
index 16d5bebd363fe166baad52c3e875fd79c6fbd6e5..33824456fff6ac1714f8b67edc6bdae5f121679e 100644 (file)
@@ -5,11 +5,15 @@ DEPENDS += "qt4-tools-native freetype jpeg libpng zlib dbus openssl glib-2.0 gst
 
 inherit qmake_base
 
-QT_CONFIG_FLAGS += "-release -no-cups -no-accessibility -reduce-relocations \
-                    -shared -no-nas-sound -no-sm -no-nis \
+QT_DISTRO_FLAGS ?= "-no-accessibility -no-sm"
+QT_DISTRO_FLAGS_poky-lsb = "-sm"
+
+QT_CONFIG_FLAGS += "-release -no-cups -reduce-relocations \
+                    -shared -no-nas-sound -no-nis \
                     -qt-gif -system-libjpeg -system-libpng -system-zlib \
                     -no-sql-ibase -no-sql-mysql -no-sql-psql -no-sql-odbc -plugin-sql-sqlite \
-                    -no-pch -dbus -stl -glib -phonon -webkit"
+                    -no-pch -dbus -stl -glib -phonon -webkit \
+                    ${QT_DISTRO_FLAGS} "
 
 EXTRA_OEMAKE = "-e"