From: Karl Berry Date: Sat, 6 Jun 2020 22:47:33 +0000 (-0700) Subject: tests: support -fno-common in vala-mix2 test. X-Git-Tag: v1.16.3~43 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=74b9f0bbad27ae1b6ecfca7fb072cbad85a98a6b;p=thirdparty%2Fautomake.git tests: support -fno-common in vala-mix2 test. This change fixes https://bugs.gnu.org/41726. * t/vala-mix2.sh: extern in .h, initialization in .c. GCC 10 defaults to -fno-common. --- diff --git a/t/vala-mix2.sh b/t/vala-mix2.sh index 8e6a21436..933a3ffca 100644 --- a/t/vala-mix2.sh +++ b/t/vala-mix2.sh @@ -44,7 +44,7 @@ int main () END cat > foo.h <<'END' -int foo; +extern int foo; int bar (void); int baz (void); END @@ -56,7 +56,7 @@ END cat > baz.c <<'END' #include "foo.h" -extern int foo = 0; +int foo = 0; int baz (void) { return 0; } END