Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf dlfilters: Fix build on environments with a --sysroot gcc arg

Such as cross building on Android, so just add EXTRA_CFLAGS to the
dlfilters rules as it is where --sysroot= has been specified.

Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lore.kernel.org/lkml/YS1JwIMTNNWcbGdT@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+2 -2
+2 -2
tools/perf/Makefile.perf
··· 785 785 786 786 $(OUTPUT)dlfilters/%.o: dlfilters/%.c include/perf/perf_dlfilter.h 787 787 $(Q)$(MKDIR) -p $(OUTPUT)dlfilters 788 - $(QUIET_CC)$(CC) -c -Iinclude -o $@ -fpic $< 788 + $(QUIET_CC)$(CC) -c -Iinclude $(EXTRA_CFLAGS) -o $@ -fpic $< 789 789 790 790 $(OUTPUT)dlfilters/%.so: $(OUTPUT)dlfilters/%.o 791 - $(QUIET_LINK)$(CC) -shared -o $@ $< 791 + $(QUIET_LINK)$(CC) $(EXTRA_CFLAGS) -shared -o $@ $< 792 792 793 793 ifndef NO_JVMTI 794 794 LIBJVMTI_IN := $(OUTPUT)jvmti/jvmti-in.o