[oe] [meta-qt5][PATCH] nativesdk-qtbase: add quotes to CC and CXX in environment file

Samuli Piippo samuli.piippo at qt.io
Wed May 9 09:31:58 UTC 2018


CC and CXX include sysroot as argument to compiler and therefore includes
spaces, which need to be quoted to work e.g., with dash.

Signed-off-by: Samuli Piippo <samuli.piippo at qt.io>
---
 recipes-qt/qt5/nativesdk-qtbase_git.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/recipes-qt/qt5/nativesdk-qtbase_git.bb b/recipes-qt/qt5/nativesdk-qtbase_git.bb
index 4189603..27bd563 100644
--- a/recipes-qt/qt5/nativesdk-qtbase_git.bb
+++ b/recipes-qt/qt5/nativesdk-qtbase_git.bb
@@ -186,9 +186,9 @@ fakeroot do_generate_qt_environment_file() {
     echo 'export OE_QMAKE_CFLAGS="$CFLAGS"' >> $script
     echo 'export OE_QMAKE_CXXFLAGS="$CXXFLAGS"' >> $script
     echo 'export OE_QMAKE_LDFLAGS="$LDFLAGS"' >> $script
-    echo 'export OE_QMAKE_CC=$CC' >> $script
-    echo 'export OE_QMAKE_CXX=$CXX' >> $script
-    echo 'export OE_QMAKE_LINK=$CXX' >> $script
+    echo 'export OE_QMAKE_CC="$CC"' >> $script
+    echo 'export OE_QMAKE_CXX="$CXX"' >> $script
+    echo 'export OE_QMAKE_LINK="$CXX"' >> $script
     echo 'export OE_QMAKE_AR=$AR' >> $script
     echo 'export OE_QMAKE_STRIP=$STRIP' >> $script
     echo 'export QT_CONF_PATH=${OE_QMAKE_PATH_HOST_BINS}/qt.conf' >> $script
-- 
2.17.0




More information about the Openembedded-devel mailing list