perf: pass CFLAGS correctly
authorMarek Behún <kabel@blackhole.sk>
Sat, 26 Sep 2020 21:49:50 +0000 (21:49 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 11 Oct 2020 14:16:24 +0000 (16:16 +0200)
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@blackhole.sk>
package/devel/perf/Makefile

index e611d5eca3269c33d960c3e36fe281f7eb97cd3e..d325e154be33ac35187acd769a96f93be243cac3 100644 (file)
@@ -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='') \