]> code.ossystems Code Review - meta-freescale.git/commitdiff
qt4: Fix *.la pollution
authorGary Thomas <gary@mlbassoc.com>
Mon, 5 Oct 2015 22:09:17 +0000 (16:09 -0600)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 19 Apr 2016 18:03:20 +0000 (15:03 -0300)
Recent [platform dependent] changes to QT_CONFIG_FLAGS allow
some C-preprocessor defines to creep into *.la (libtool) files.
This are not allowed (or even handled) and cause linker errors
when trying to link against these libraries.

This patch removes the incorrect/erroneous preprocessor directives
to leave the *.la files useable once again.  The change is done in
a post-processing step to clean up the *.la files as they are only
used externally to this package.

Signed-off-by: Gary Thomas <gary@mlbassoc.com>
Upstream-status: Innapropriate [OE patch causes the problem]
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-qt/qt4/qt4-imx-support.inc

index 10eac09007665d9cd86d93f49c1ee65dffaf27ea..0efb56451ed635e77ff22a261e380163f3b682fc 100644 (file)
@@ -21,3 +21,8 @@ QT_CONFIG_FLAGS_append_mx6 = " -I${STAGING_KERNEL_DIR}/include/uapi \
                                -DLINUX=1 -DEGL_API_FB=1 \
                                -DQT_QPA_EXPERIMENTAL_TOUCHEVENT=1"
 
+# The QT_CONFIG_FLAGS can pollute *.la files with -Dxxx
+do_compile_append_mx6 () {
+    find lib -name "*.la" | xargs -n1 sed -i 's/-D.*=1//g'
+}
+