diff options
author | Gary Thomas <gary@mlbassoc.com> | 2015-10-05 16:09:17 -0600 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2015-10-06 08:40:09 -0300 |
commit | 78152f0a6b64b760f3973c0527771380ba687072 (patch) | |
tree | 3b3964984a687de7dec19e0de7c7431ed2b7cfaf | |
parent | e76622d2b89952f817005ca0bf3575170aaaa7f9 (diff) | |
download | meta-fsl-arm-78152f0a6b64b760f3973c0527771380ba687072.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>
-rw-r--r-- | recipes-qt/qt4/qt4-imx-support.inc | 5 |
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 10eac09..0efb564 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 | ||
25 | do_compile_append_mx6 () { | ||
26 | find lib -name "*.la" | xargs -n1 sed -i 's/-D.*=1//g' | ||
27 | } | ||
28 | |||