diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2024-08-27 16:27:13 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2024-08-30 15:44:38 +0200 |
commit | a5330eb3bcd87f3ce7738a2e898671a0ff561e85 (patch) | |
tree | f4e232822e1430794ff47a89d5218e1e2d7cf420 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 1e661b349041c3d5026d9e95930b1d396c0c6e6d (diff) |
selftests: vDSO: separate LDLIBS from CFLAGS for libsodium
On systems that set -Wl,--as-needed, putting the -lsodium in the wrong
place on the command line means we get a linker error:
CC vdso_test_chacha
/usr/bin/ld: /tmp/ccKpjnSM.o: in function `main':
vdso_test_chacha.c:(.text+0x276): undefined reference to `crypto_stream_chacha20'
collect2: error: ld returned 1 exit status
Fix this by passing pkg-config's --libs output to the LDFLAGS field
instead of the CFLAGS field, as is customary.
Reported-by: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions