[LTP] [RFC PATCH] kvm: Fix Nix build failure by specifying -fno-stack-protector again
Cyril Hrubis
chrubis@suse.cz
Mon Sep 18 13:44:16 CEST 2023
Hi!
> I found that adding the GUEST_LDFLAGS to the lib_*.o compilations
> fixes the issue on Nix.
I suppose that, if nothing else, we should add just -fno-stack-protector
to the GUEST_CFLAGS instead.
> ---
> testcases/kernel/kvm/Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/testcases/kernel/kvm/Makefile b/testcases/kernel/kvm/Makefile
> index d9eb10728..ddb24fabe 100644
> --- a/testcases/kernel/kvm/Makefile
> +++ b/testcases/kernel/kvm/Makefile
> @@ -46,7 +46,7 @@ MAKE_TARGETS =
> endif
>
> lib_guest.o $(ARCH_OBJ): CPPFLAGS := $(GUEST_CPPFLAGS)
> -lib_guest.o $(ARCH_OBJ): CFLAGS := $(GUEST_CFLAGS)
> +lib_guest.o $(ARCH_OBJ): CFLAGS := $(GUEST_CFLAGS) $(GUEST_LDFLAGS)
>
> kvm_svm03: CFLAGS += -pthread
> kvm_svm03: LDLIBS += -pthread
> --
> 2.40.1
>
>
> --
> Mailing list info: https://lists.linux.it/listinfo/ltp
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list