summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2013-06-14 16:09:33 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-17 16:45:37 +0100
commit37d244d9d38e40e255fedb3f3af4db245820833b (patch)
tree49f9aa4bc4e5396bf000e129c9a6be1f943805a9 /meta
parent38702506507e9b768995e28f3beebfc9d3c56c6c (diff)
downloadpoky-37d244d9d38e40e255fedb3f3af4db245820833b.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(). (From OE-Core rev: 99fb3e7408d9fe1b7754dc3994f79e6d5f5b3593) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-support/libcap/libcap.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-support/libcap/libcap.inc b/meta/recipes-support/libcap/libcap.inc
index 7f16a569c8..772057f510 100644
--- a/meta/recipes-support/libcap/libcap.inc
+++ b/meta/recipes-support/libcap/libcap.inc
@@ -16,11 +16,13 @@ PR = "r1"
16 16
17inherit lib_package 17inherit lib_package
18 18
19# do NOT pass target cflags to host compilations
20#
19do_configure() { 21do_configure() {
20 # libcap uses := for compilers, fortunately, it gives us a hint 22 # libcap uses := for compilers, fortunately, it gives us a hint
21 # on what should be replaced with ?= 23 # on what should be replaced with ?=
22 sed -e 's,:=,?=,g' -i Make.Rules 24 sed -e 's,:=,?=,g' -i Make.Rules
23 sed -e 's,BUILD_CFLAGS ?=,BUILD_CFLAGS := $(BUILD_CFLAGS),' -i Make.Rules 25 sed -e 's,^BUILD_CFLAGS ?= $(CFLAGS),BUILD_CFLAGS := $(BUILD_CFLAGS),' -i Make.Rules
24} 26}
25 27
26EXTRA_OEMAKE = " \ 28EXTRA_OEMAKE = " \