summaryrefslogtreecommitdiffstats
path: root/recipes-qt
diff options
context:
space:
mode:
authorGary Thomas <gary@mlbassoc.com>2015-10-05 16:09:17 -0600
committerOtavio Salvador <otavio@ossystems.com.br>2016-04-19 15:03:20 -0300
commitaed74dcf5c43b5a7dd78ee7ec705558b947e34d4 (patch)
treeb005f3d741642641562ec23f0d2d2d87b6adafc3 /recipes-qt
parent1c62a8f1dfe90433b8823ce71866a9824702e1c1 (diff)
downloadmeta-freescale-aed74dcf5c43b5a7dd78ee7ec705558b947e34d4.tar.gz
qt4: Fix *.la pollution
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>
Diffstat (limited to 'recipes-qt')
-rw-r--r--recipes-qt/qt4/qt4-imx-support.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes-qt/qt4/qt4-imx-support.inc b/recipes-qt/qt4/qt4-imx-support.inc
index 10eac090..0efb5645 100644
--- a/recipes-qt/qt4/qt4-imx-support.inc
+++ b/recipes-qt/qt4/qt4-imx-support.inc
@@ -21,3 +21,8 @@ QT_CONFIG_FLAGS_append_mx6 = " -I${STAGING_KERNEL_DIR}/include/uapi \
21 -DLINUX=1 -DEGL_API_FB=1 \ 21 -DLINUX=1 -DEGL_API_FB=1 \
22 -DQT_QPA_EXPERIMENTAL_TOUCHEVENT=1" 22 -DQT_QPA_EXPERIMENTAL_TOUCHEVENT=1"
23 23
24# The QT_CONFIG_FLAGS can pollute *.la files with -Dxxx
25do_compile_append_mx6 () {
26 find lib -name "*.la" | xargs -n1 sed -i 's/-D.*=1//g'
27}
28