Skip to content

Commit ca8bf8f

Browse files
zx2c4Paolo Abeni
authored andcommitted
wireguard: selftests: specify -std=gnu17 for bash
GCC 15 defaults to C23, which bash can't compile under, so specify gnu17 explicitly. Signed-off-by: Jason A. Donenfeld <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent ba3d7b9 commit ca8bf8f

File tree

1 file changed

+1
-0
lines changed
  • tools/testing/selftests/wireguard/qemu

1 file changed

+1
-0
lines changed

tools/testing/selftests/wireguard/qemu/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ $(BASH_PATH)/.installed: $(BASH_TAR)
401401
flock -s $<.lock tar -C $(BUILD_PATH) -xf $<
402402
touch $@
403403

404+
$(BASH_PATH)/bash: export CFLAGS_FOR_BUILD += -std=gnu17
404405
$(BASH_PATH)/bash: | $(BASH_PATH)/.installed $(USERSPACE_DEPS)
405406
cd $(BASH_PATH) && ./configure --prefix=/ $(CROSS_COMPILE_FLAG) --without-bash-malloc --disable-debugger --disable-help-builtin --disable-history --disable-progcomp --disable-readline --disable-mem-scramble
406407
$(MAKE) -C $(BASH_PATH)

0 commit comments

Comments
 (0)