]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: support -fno-common in vala-mix2 test.
authorKarl Berry <karl@freefriends.org>
Sat, 6 Jun 2020 22:47:33 +0000 (15:47 -0700)
committerKarl Berry <karl@freefriends.org>
Sat, 6 Jun 2020 22:47:33 +0000 (15:47 -0700)
This change fixes https://bugs.gnu.org/41726.

* t/vala-mix2.sh: extern in .h, initialization in .c.
GCC 10 defaults to -fno-common.

t/vala-mix2.sh

index 8e6a214360bfdea6240fad37e323509d2e631d6c..933a3ffca5b8395a24ab977c79f7cb3654fd40e4 100644 (file)
@@ -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