[v2] gpsd: fix clang buid via export CC explicitly

Message ID 20211202130311.2080938-1-andrey.z@gmail.com
State New
Headers show
Series [v2] gpsd: fix clang buid via export CC explicitly | expand

Commit Message

Andrey Zhizhikin Dec. 2, 2021, 1:03 p.m. UTC
gpsd scons build system defaults CC to 'gcc', which prevents clang
toolchain to be used.

Export CC explicitly via environment to override default assignment in
scons.

Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
---
Changes in V2:
- Correct commit message by removing CPP variable, it is not present in
  the patch.

 meta-oe/recipes-navigation/gpsd/gpsd_3.23.1.bb | 1 +
 1 file changed, 1 insertion(+)


base-commit: ac67765cb09ebb43e1a2ecbea7e0f425b3cffcbb

Patch

diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.23.1.bb b/meta-oe/recipes-navigation/gpsd/gpsd_3.23.1.bb
index ace907bc0..c11d4c76d 100644
--- a/meta-oe/recipes-navigation/gpsd/gpsd_3.23.1.bb
+++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.23.1.bb
@@ -48,6 +48,7 @@  do_compile:prepend() {
     export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"
     export PKG_CONFIG="PKG_CONFIG_SYSROOT_DIR=\"${PKG_CONFIG_SYSROOT_DIR}\" pkg-config"
     export STAGING_PREFIX="${STAGING_DIR_HOST}/${prefix}"
+    export CC="${CC}"
     export LD="${CC}"
     export LINKFLAGS="${LDFLAGS}"
 }