[openwrt/openwrt] perf: pass CFLAGS correctly
LEDE Commits
lede-commits at lists.infradead.org
Sun Oct 11 10:38:24 EDT 2020
hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/3d0fa1a012a9e67cad19274c35719f77a243ac82
commit 3d0fa1a012a9e67cad19274c35719f77a243ac82
Author: Marek Behún <kabel at blackhole.sk>
AuthorDate: Sat Sep 26 21:49:50 2020 +0000
perf: pass CFLAGS correctly
For this package CFLAGS have to be passed via EXTRA_CFLAGS.
On arm this bug causes build to fail because no -fPIC is present in CFLAGS.
Signed-off-by: Marek Behún <kabel at blackhole.sk>
---
package/devel/perf/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/devel/perf/Makefile b/package/devel/perf/Makefile
index e611d5eca3..d325e154be 100644
--- a/package/devel/perf/Makefile
+++ b/package/devel/perf/Makefile
@@ -57,7 +57,7 @@ MAKE_FLAGS = \
CROSS_COMPILE="$(TARGET_CROSS)" \
CC="$(TARGET_CC)" \
LD="$(TARGET_CROSS)ld" \
- CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
+ EXTRA_CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)" \
KBUILD_HOSTCFLAGS="$(HOST_CFLAGS)" \
$(if $(findstring c,$(OPENWRT_VERBOSE)),V=1,V='') \
More information about the lede-commits
mailing list