[OE-core] [PATCH] do not pass CFLAGS to gcc while building libcap
jackie.huang at windriver.com
jackie.huang at windriver.com
Fri Jun 14 08:09:33 UTC 2013
From: Jackie Huang <jackie.huang at windriver.com>
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 at windriver.com>
Signed-off-by: Jackie Huang <jackie.huang at windriver.com>
---
meta/recipes-support/libcap/libcap.inc | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-support/libcap/libcap.inc b/meta/recipes-support/libcap/libcap.inc
index 2fd5718..5ace7d7 100644
--- a/meta/recipes-support/libcap/libcap.inc
+++ b/meta/recipes-support/libcap/libcap.inc
@@ -12,15 +12,17 @@ DEPENDS_class-native = "perl-native-runtime"
SRC_URI = "${DEBIAN_MIRROR}/main/libc/libcap2/${BPN}2_${PV}.orig.tar.gz"
-PR = "r2"
+PR = "r3"
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 = " \
--
1.7.4.1
More information about the Openembedded-core
mailing list