Skip to contentSkip to conversation

nativesdk-qtbase: add quotes to CC and CXX in environment file

PATCH New Samuli Piippo 1 participant 1 message May 9, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nativesdk-qtbase: add quotes to CC and CXX in environment file

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

---
 recipes-qt/qt5/nativesdk-qtbase_git.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
recipes-qt/qt5/nativesdk-qtbase_git.bb +3 -3
index 4189603..27bd563 100644
@@ -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
Signature · 1 line
2.17.0