!9 Support -fno-common in vala-mix2 test
From: @panxh_purple Reviewed-by: @overweight,@overweight Signed-off-by: @overweight,@overweight
This commit is contained in:
commit
04b327ba34
@ -4,7 +4,7 @@
|
||||
|
||||
Name: automake
|
||||
Version: 1.16.2
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: A tool for automatically generating Makefile.in files
|
||||
License: GPLv2+ and GFDL and Public Domain and MIT
|
||||
URL: http://www.gnu.org/software/automake/
|
||||
@ -13,6 +13,7 @@ Source1: http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
|
||||
Source2: http://git.savannah.gnu.org/cgit/config.git/plain/config.guess
|
||||
|
||||
Patch1: tests-require-etags-for-tags-lisp-space-test.patch
|
||||
Patch2: tests-support-fno-common-in-vala-mix2-test.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
@ -75,6 +76,9 @@ fi
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Fri Jul 30 2021 panxiaohe <panxiaohe@huawei.com> - 1.16.2-3
|
||||
- Support -fno-common in vala-mix2 test
|
||||
|
||||
* Thu May 27 2021 yangzhuangzhuang <yangzhuangzhuang1@huawei.com> - 1.16.2-2
|
||||
- Fix test failed
|
||||
|
||||
|
||||
38
tests-support-fno-common-in-vala-mix2-test.patch
Normal file
38
tests-support-fno-common-in-vala-mix2-test.patch
Normal file
@ -0,0 +1,38 @@
|
||||
From 74b9f0bbad27ae1b6ecfca7fb072cbad85a98a6b Mon Sep 17 00:00:00 2001
|
||||
From: Karl Berry <karl@freefriends.org>
|
||||
Date: Sat, 6 Jun 2020 15:47:33 -0700
|
||||
Subject: [PATCH] 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.
|
||||
---
|
||||
t/vala-mix2.sh | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/t/vala-mix2.sh b/t/vala-mix2.sh
|
||||
index 8e6a214..933a3ff 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
|
||||
|
||||
--
|
||||
1.8.3.1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user