diff options
author | Jackie Huang <jackie.huang@windriver.com> | 2013-06-14 16:09:33 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-06-17 16:44:36 +0100 |
commit | 99fb3e7408d9fe1b7754dc3994f79e6d5f5b3593 (patch) | |
tree | 9d4b3631ddac67727adf4235a8e0b4c9919a45e5 /meta/recipes-support/libcap | |
parent | 07f4030909dcc14c4ce4d6d3690a192c0b4040a9 (diff) | |
download | openembedded-core-contrib-99fb3e7408d9fe1b7754dc3994f79e6d5f5b3593.tar.gz |
libcap: do not pass CFLAGS to gcc
During do_configure(), we modify the BUILD_CFLAGS used
but do not remove the default inclusion of CFLAGS
in BUILD_CFLAGS. This fix removes CFLAGS inclusion
by modifying do_configure().
Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-support/libcap')
-rw-r--r-- | meta/recipes-support/libcap/libcap.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-support/libcap/libcap.inc b/meta/recipes-support/libcap/libcap.inc index 7f16a569c8a..772057f5107 100644 --- a/meta/recipes-support/libcap/libcap.inc +++ b/meta/recipes-support/libcap/libcap.inc @@ -16,11 +16,13 @@ PR = "r1" inherit lib_package +# do NOT pass target cflags to host compilations +# do_configure() { # libcap uses := for compilers, fortunately, it gives us a hint # on what should be replaced with ?= sed -e 's,:=,?=,g' -i Make.Rules - sed -e 's,BUILD_CFLAGS ?=,BUILD_CFLAGS := $(BUILD_CFLAGS),' -i Make.Rules + sed -e 's,^BUILD_CFLAGS ?= $(CFLAGS),BUILD_CFLAGS := $(BUILD_CFLAGS),' -i Make.Rules } EXTRA_OEMAKE = " \ |