mirror-linux/tools/build/feature
Arnaldo Carvalho de Melo fe072f6510 tools build: Fix the common set of features test wrt libopenssl
The recent introduction of the libopenssl feature test forgot to add the
-lssl to the test-all.o target, which made it always fail, fix it.

Noticed by looking at this file after building:

  $ cat /tmp/build/perf-tools/feature/test-all.make.output
  /usr/bin/ld: /tmp/ccBhO8WH.ltrans0.ltrans.o: in function `main':
  /home/acme/git/perf-tools/tools/build/feature/test-libopenssl.c:6:(.text.startup+0x2ed): undefined reference to `OPENSSL_init_ssl'
  collect2: error: ld returned 1 exit status
  $

It was added only to the individual ssl test, that works:

  $ cat /tmp/build/perf-tools/feature/test-libopenssl.make.output
  $ ldd /tmp/build/perf-tools/feature/test-libopenssl.bin | grep ssl
	libssl.so.3 => /usr/lib64/libssl.so.3 (0x00007fb81eda8000)
  $

Fixes: 7678523109 ("tools/build: Add a feature test for libopenssl")
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
2025-12-27 20:26:44 -08:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Makefile tools build: Fix the common set of features test wrt libopenssl 2025-12-27 20:26:44 -08:00
test-all.c tools/build: Add a feature test for libopenssl 2025-12-17 05:44:24 -08:00
test-backtrace.c tools build: Fix a number of Wconversion warnings 2025-02-12 20:23:05 -08:00
test-bionic.c
test-bpf.c tools build: Fix a number of Wconversion warnings 2025-02-12 20:23:05 -08:00
test-clang-bpf-co-re.c tools/bpftool: Generalize BPF skeleton support and generate vmlinux.h 2020-06-22 17:01:48 -07:00
test-compile.c
test-cplus-demangle.c
test-cxa-demangle.cpp tools build: Add feature test for abi::__cxa_demangle 2023-03-14 08:29:46 -03:00
test-disassembler-four-args.c
test-disassembler-init-styled.c tools build: Add feature test for init_disassemble_info API changes 2022-08-01 15:29:10 -03:00
test-eventfd.c
test-file-handle.c perf tools: Add file-handle feature test 2020-04-03 09:37:55 -03:00
test-fortify-source.c tools build feature tests: Add missing SPDX headers 2019-06-17 15:57:19 -03:00
test-gettid.c tools build: Check if gettid() is available before providing helper 2019-06-17 15:57:19 -03:00
test-glibc.c tools build: Fix a number of Wconversion warnings 2025-02-12 20:23:05 -08:00
test-gtk2-infobar.c
test-gtk2.c
test-hello.c tools build feature tests: Add missing SPDX headers 2019-06-17 15:57:19 -03:00
test-jvmti-cmlr.c perf jvmti: Separate jvmti cmlr check 2018-11-21 22:39:58 -03:00
test-jvmti.c perf jvmti: Separate jvmti cmlr check 2018-11-21 22:39:58 -03:00
test-libaio.c tools build feature: Check if libaio is available 2018-12-17 14:54:54 -03:00
test-libbabeltrace.c
test-libbfd-buildid.c tools features: Add feature test to check if libbfd has buildid support 2020-09-04 14:38:15 -03:00
test-libbfd.c
test-libbpf.c tools build: Pass libbpf feature only if libbpf 1.0+ 2023-03-14 08:29:33 -03:00
test-libcap.c Revert "tools build: Remove leftover libcap tests that prevents fast path feature detection from working" 2024-08-29 11:51:43 -03:00
test-libcapstone.c perf: build: introduce the libcapstone 2024-02-20 18:06:25 -08:00
test-libcpupower.c tools/build: Add libcpupower dependency detection 2024-10-17 17:13:15 -04:00
test-libdebuginfod.c tools build: Fix a number of Wconversion warnings 2025-02-12 20:23:05 -08:00
test-libdw.c tools build: Fix a number of Wconversion warnings 2025-02-12 20:23:05 -08:00
test-libelf-gelf_getnote.c tools build: Fix a number of Wconversion warnings 2025-02-12 20:23:05 -08:00
test-libelf-getphdrnum.c
test-libelf-getshdrstrndx.c
test-libelf-zstd.c tools build: Add feature test for libelf with ZSTD 2024-12-18 16:24:32 -03:00
test-libelf.c tools build: Fix a number of Wconversion warnings 2025-02-12 20:23:05 -08:00
test-libnuma.c
test-libopencsd.c perf cs-etm: Bump minimum OpenCSD version to ensure a bugfix is present 2023-11-27 10:21:27 -03:00
test-libopenssl.c tools/build: Add a feature test for libopenssl 2025-12-17 05:44:24 -08:00
test-libperl.c
test-libpfm4.c tools feature: Add support for detecting libpfm4 2020-05-05 16:35:31 -03:00
test-libpython.c tools feature: Undef _GNU_SOURCE at the end of feature tests 2019-02-14 13:31:11 -03:00
test-libslang.c
test-libtraceevent.c perf build: Include libtraceevent headers directly indicated by pkg-config 2024-11-08 22:42:57 -08:00
test-libtracefs.c perf build: Use pkg-config for feature check for libtrace{event,fs} 2024-06-21 16:19:03 -07:00
test-libunwind-aarch64.c
test-libunwind-arm.c
test-libunwind-debug-frame-aarch64.c
test-libunwind-debug-frame-arm.c
test-libunwind-debug-frame.c
test-libunwind-x86.c
test-libunwind-x86_64.c
test-libunwind.c
test-libzstd.c tools build: Implement libzstd feature check, LIBZSTD_DIR and NO_LIBZSTD defines 2019-04-01 15:18:10 -03:00
test-llvm-perf.cpp perf build: Autodetect minimum required llvm-dev version 2024-09-10 17:32:46 -03:00
test-llvm.cpp tools build: Fix llvm feature detection, still used by bpftool 2023-10-19 22:33:58 -03:00
test-lzma.c tools build: Fix a number of Wconversion warnings 2025-02-12 20:23:05 -08:00
test-numa_num_possible_cpus.c
test-pthread-attr-setaffinity-np.c
test-pthread-barrier.c
test-reallocarray.c tools build: Add test-reallocarray.c to test-all.c to fix the build 2019-02-14 15:18:05 -03:00
test-scandirat.c tools build: Add a feature test for scandirat(), that is not implemented so far in musl and uclibc 2023-04-04 13:18:17 -03:00
test-sched_getcpu.c tools build feature sched_getcpu: Undef _GNU_SOURCE at the end 2019-02-14 15:39:21 -03:00
test-sdt.c
test-setns.c tools build feature tests: Add missing SPDX headers 2019-06-17 15:57:19 -03:00
test-stackprotector-all.c
test-timerfd.c
test-zlib.c