diff options
Diffstat (limited to 'tools/perf/config/feature-checks/Makefile')
| -rw-r--r-- | tools/perf/config/feature-checks/Makefile | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/tools/perf/config/feature-checks/Makefile b/tools/perf/config/feature-checks/Makefile index 72ab2984718e..53f19b5dbc37 100644 --- a/tools/perf/config/feature-checks/Makefile +++ b/tools/perf/config/feature-checks/Makefile | |||
| @@ -27,7 +27,10 @@ FILES= \ | |||
| 27 | test-libunwind-debug-frame.bin \ | 27 | test-libunwind-debug-frame.bin \ |
| 28 | test-stackprotector-all.bin \ | 28 | test-stackprotector-all.bin \ |
| 29 | test-timerfd.bin \ | 29 | test-timerfd.bin \ |
| 30 | test-libdw-dwarf-unwind.bin | 30 | test-libdw-dwarf-unwind.bin \ |
| 31 | test-compile-32.bin \ | ||
| 32 | test-compile-x32.bin \ | ||
| 33 | test-zlib.bin | ||
| 31 | 34 | ||
| 32 | CC := $(CROSS_COMPILE)gcc -MD | 35 | CC := $(CROSS_COMPILE)gcc -MD |
| 33 | PKG_CONFIG := $(CROSS_COMPILE)pkg-config | 36 | PKG_CONFIG := $(CROSS_COMPILE)pkg-config |
| @@ -39,7 +42,7 @@ BUILD = $(CC) $(CFLAGS) -o $(OUTPUT)$@ $(patsubst %.bin,%.c,$@) $(LDFLAGS) | |||
| 39 | ############################### | 42 | ############################### |
| 40 | 43 | ||
| 41 | test-all.bin: | 44 | test-all.bin: |
| 42 | $(BUILD) -Werror -fstack-protector-all -O2 -Werror -D_FORTIFY_SOURCE=2 -ldw -lelf -lnuma -lelf -laudit -I/usr/include/slang -lslang $(shell $(PKG_CONFIG) --libs --cflags gtk+-2.0 2>/dev/null) $(FLAGS_PERL_EMBED) $(FLAGS_PYTHON_EMBED) -DPACKAGE='"perf"' -lbfd -ldl | 45 | $(BUILD) -Werror -fstack-protector-all -O2 -Werror -D_FORTIFY_SOURCE=2 -ldw -lelf -lnuma -lelf -laudit -I/usr/include/slang -lslang $(shell $(PKG_CONFIG) --libs --cflags gtk+-2.0 2>/dev/null) $(FLAGS_PERL_EMBED) $(FLAGS_PYTHON_EMBED) -DPACKAGE='"perf"' -lbfd -ldl -lz |
| 43 | 46 | ||
| 44 | test-hello.bin: | 47 | test-hello.bin: |
| 45 | $(BUILD) | 48 | $(BUILD) |
| @@ -131,6 +134,15 @@ test-libdw-dwarf-unwind.bin: | |||
| 131 | test-sync-compare-and-swap.bin: | 134 | test-sync-compare-and-swap.bin: |
| 132 | $(BUILD) -Werror | 135 | $(BUILD) -Werror |
| 133 | 136 | ||
| 137 | test-compile-32.bin: | ||
| 138 | $(CC) -m32 -o $(OUTPUT)$@ test-compile.c | ||
| 139 | |||
| 140 | test-compile-x32.bin: | ||
| 141 | $(CC) -mx32 -o $(OUTPUT)$@ test-compile.c | ||
| 142 | |||
| 143 | test-zlib.bin: | ||
| 144 | $(BUILD) -lz | ||
| 145 | |||
| 134 | -include *.d | 146 | -include *.d |
| 135 | 147 | ||
| 136 | ############################### | 148 | ############################### |
