]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
selftests: vDSO: add --cflags for pkg-config command querying libsodium
authorXi Ruoyao <xry111@xry111.site>
Tue, 27 Aug 2024 13:20:15 +0000 (21:20 +0800)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 30 Aug 2024 13:44:38 +0000 (15:44 +0200)
When libsodium is installed into its own prefix, the --cflags output is
needed for the compiler to find libsodium headers.

Signed-off-by: Xi Ruoyao <xry111@xry111.site>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
tools/testing/selftests/vDSO/Makefile

index 10ffdda3f2fa8389ec865f0e08e3ae7f9fb0cdc0..180854eb9fec1aff8b2f5573e97d4f089e4c3af3 100644 (file)
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 uname_M := $(shell uname -m 2>/dev/null || echo not)
 ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
-SODIUM := $(shell pkg-config --libs libsodium 2>/dev/null)
+SODIUM := $(shell pkg-config --libs --cflags libsodium 2>/dev/null)
 
 TEST_GEN_PROGS := vdso_test_gettimeofday
 TEST_GEN_PROGS += vdso_test_getcpu