Message ID | 20230918112358.25858-1-rpalethorpe@suse.com |
---|---|
State | Changes Requested |
Headers | show |
Series | [RFC] kvm: Fix Nix build failure by specifying -fno-stack-protector again | expand |
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
On 18. 09. 23 13:44, Cyril Hrubis wrote: > 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. +1
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