diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index eb6bd99be0bd0072008d8b253cfb46f752fe8510..f050f38d8fa3a3cf2d86610f8149101a26fe0ce2 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -58,7 +58,7 @@ endif ifeq ($(ARCH),s390) NO_PERF_REGS := 0 NO_SYSCALL_TABLE := 0 - CFLAGS += -I$(OUTPUT)arch/s390/include/generated + CFLAGS += -fPIC -I$(OUTPUT)arch/s390/include/generated endif ifeq ($(NO_PERF_REGS),0)