commit:     da5dd26a142c51e5fa97c316e29302630e432de0
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 15 21:35:37 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Mar 15 21:35:37 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da5dd26a

dev-embedded/xa: Fix building with -fno-common

Closes: https://bugs.gentoo.org/710988
Package-Manager: Portage-2.3.94, Repoman-2.3.21
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 dev-embedded/xa/files/xa-2.3.10-fix-gcc10-fno-common.patch | 12 ++++++++++++
 dev-embedded/xa/xa-2.3.10.ebuild                           |  4 +++-
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/dev-embedded/xa/files/xa-2.3.10-fix-gcc10-fno-common.patch 
b/dev-embedded/xa/files/xa-2.3.10-fix-gcc10-fno-common.patch
new file mode 100644
index 00000000000..5b348643388
--- /dev/null
+++ b/dev-embedded/xa/files/xa-2.3.10-fix-gcc10-fno-common.patch
@@ -0,0 +1,12 @@
+--- a/src/xap.h
++++ b/src/xap.h
+@@ -35,7 +35,7 @@
+ long gm_ppm(void);
+ long ga_ppm(void);
+ 
+-Datei *filep;
+-char s[MAXLINE];
++extern Datei *filep;
++extern char s[MAXLINE];
+ 
+ #endif /* __XA65_XAP_H__ */

diff --git a/dev-embedded/xa/xa-2.3.10.ebuild b/dev-embedded/xa/xa-2.3.10.ebuild
index 0b4aabb5713..4c062c20057 100644
--- a/dev-embedded/xa/xa-2.3.10.ebuild
+++ b/dev-embedded/xa/xa-2.3.10.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -13,6 +13,8 @@ LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 
+PATCHES=( "${FILESDIR}"/${PN}-2.3.10-fix-gcc10-fno-common.patch )
+
 src_compile() {
        emake \
                CC="$(tc-getCC)" \

Reply via email to