From: Marek BehĂșn Date: Sat, 26 Sep 2020 21:49:50 +0000 (+0000) Subject: perf: pass CFLAGS correctly X-Git-Tag: v21.02.0-rc1~1381 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3d0fa1a012a9e67cad19274c35719f77a243ac82;p=openwrt%2Fopenwrt.git 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 --- 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='') \