mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
3870250650
commit
37d244d9d3
@@ -16,11 +16,13 @@ PR = "r1"
|
|||||||
|
|
||||||
inherit lib_package
|
inherit lib_package
|
||||||
|
|
||||||
|
# do NOT pass target cflags to host compilations
|
||||||
|
#
|
||||||
do_configure() {
|
do_configure() {
|
||||||
# libcap uses := for compilers, fortunately, it gives us a hint
|
# libcap uses := for compilers, fortunately, it gives us a hint
|
||||||
# on what should be replaced with ?=
|
# on what should be replaced with ?=
|
||||||
sed -e 's,:=,?=,g' -i Make.Rules
|
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 = " \
|
EXTRA_OEMAKE = " \
|
||||||
|
|||||||
Reference in New Issue
Block a user