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 <Jason@zx2c4.com> Link: https://patch.msgid.link/20250521212707.1767879-6-Jason@zx2c4.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent ba3d7b9 commit ca8bf8f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • tools/testing/selftests/wireguard/qemu

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)