]> Pileus Git - ~andy/linux/blobdiff - tools/perf/config/feature-checks/Makefile
tools/perf/build: Split out feature checks: 'liberty', 'liberty-z', 'cplus-demangle'
[~andy/linux] / tools / perf / config / feature-checks / Makefile
index d4c55acc82bba985bb0095528d34ad6f21aba4d5..e21bceb80bf2e38d932a3507cc8038e7c8cd380c 100644 (file)
@@ -11,6 +11,9 @@ FILES=                                        \
        test-hello                      \
        test-libaudit                   \
        test-libbfd                     \
+       test-liberty                    \
+       test-liberty-z                  \
+       test-cplus-demangle             \
        test-libelf                     \
        test-libelf-getphdrnum          \
        test-libelf-mmap                \
@@ -122,6 +125,15 @@ test-libpython-version:
 test-libbfd:
        $(BUILD) -DPACKAGE='perf' -DPACKAGE=perf -lbfd -ldl
 
+test-liberty:
+       $(CC) -o $(OUTPUT)$@ test-libbfd.c -DPACKAGE='perf' -DPACKAGE=perf -lbfd -ldl -liberty
+
+test-liberty-z:
+       $(CC) -o $(OUTPUT)$@ test-libbfd.c -DPACKAGE='perf' -DPACKAGE=perf -lbfd -ldl -liberty -lz
+
+test-cplus-demangle:
+       $(BUILD) -liberty
+
 test-on-exit:
        $(BUILD)