All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-filesystems][PATCH] aufs-utils-native: define CC
@ 2017-03-21 21:02 Bruce Ashfield
  0 siblings, 0 replies; only message in thread
From: Bruce Ashfield @ 2017-03-21 21:02 UTC (permalink / raw)
  To: openembedded-devel

With the new host tools path filtering, aufs-utils-native fails to build
as follows:

| ERROR: oe_runmake failed
| cc
| -isystem/build/tmp/work/x86_64-linux/aufs-util-native/3.14+gitAUTOINC+b59a2167a1-r0/recipe-sysroot-native/usr/include
| -O2 -pipe -O -Wall
| -I/build/tmp/work/x86_64-linux/aufs-util-native/3.14+gitAUTOINC
+b59a2167a1-r0/git/include
| -I/build/tmp/work/x86_64-linux/aufs-util-native/3.14+gitAUTOINC+b59a2167a1-r0/git/libau
| -D_GNU_SOURCE -I./libau -DAUFHSM_CMD=\"/usr/bin/aufhsm\"
| -DMOUNT_CMD=\"/bin/mount\" -DUMOUNT_CMD=\"/bin/um
ount\"
| -L/build/tmp/work/x86_64-linux/aufs-util-native/3.14+gitAUTOINC+b59a2167a1-r0/recipe-sysroot-native/usr/lib
| -L/build/tmp/work/x86_64-linux/aufs-util-native/3.14+gitAUTOINC+b59a2167a1-r0/recipe-sysro
ot-native/lib
| -Wl,-rpath-link,/build/tmp/work/x86_64-linux/aufs-util-native/3.14+gitAUTOINC+b59a2167a1-r0/recipe-sysroot-native/usr/lib
| -Wl,-rpath-link,/build/tmp/work/x86_64-linux/aufs-util-native/3.14+gi
tAUTOINC+b59a2167a1-r0/recipe-sysroot-native/lib
| -Wl,-rpath,/build/tmp/work/x86_64-linux/aufs-util-native/3.14+gitAUTOINC+b59a2167a1-r0/recipe-sysroot-native/usr/lib
| -Wl,-rpath,/build/tmp/work/x86_64-linux
/aufs-util-native/3.14+gitAUTOINC+b59a2167a1-r0/recipe-sysroot-native/lib
| -Wl,-O1  c2sh.c   -o c2sh
| make: cc: Command not found
| <builtin>: recipe for target 'c2sh' failed

While we could get 'cc' added to the tools whitelist, it is just as easy
to redefine CC to be gcc, which is already passed through.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
---
 meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb b/meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb
index 3d59e50f4a30..7d5352eb4e76 100644
--- a/meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb
+++ b/meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb
@@ -41,7 +41,7 @@ do_compile () {
 }
 
 do_compile_class-native () {
-    oe_runmake tools CPPFLAGS="-I${S}/include -I${S}/libau"
+    oe_runmake tools CPPFLAGS="-I${S}/include -I${S}/libau" CC="${BUILD_CC}"
 }
 
 do_install () {
-- 
2.5.0



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-21 21:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-21 21:02 [meta-filesystems][PATCH] aufs-utils-native: define CC Bruce Ashfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.