Message ID | 20240827132018.88854-3-xry111@xry111.site (mailing list archive) |
---|---|
State | Not Applicable |
Delegated to: | Herbert Xu |
Headers | show |
Series | LoongArch: Implement getrandom() in vDSO | expand |
On Tue, Aug 27, 2024 at 09:20:15PM +0800, Xi Ruoyao wrote: > 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> Thanks. I applied this one to random.git. gitolite.kernel.org is down for maintenance at the moment, but it's in the mirror on my personal server: https://git.zx2c4.com/linux-rng/
diff --git a/tools/testing/selftests/vDSO/Makefile b/tools/testing/selftests/vDSO/Makefile index 10ffdda3f2fa..180854eb9fec 100644 --- a/tools/testing/selftests/vDSO/Makefile +++ b/tools/testing/selftests/vDSO/Makefile @@ -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
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> --- tools/testing/selftests/vDSO/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)