dev-tcltk/tkimg: build with fno-common
authorAlfredo Tupone <tupone@gentoo.org>
Mon, 13 Apr 2020 18:23:49 +0000 (20:23 +0200)
committerAlfredo Tupone <tupone@gentoo.org>
Mon, 13 Apr 2020 18:23:49 +0000 (20:23 +0200)
Closes: https://bugs.gentoo.org/706838
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
dev-tcltk/tkimg/files/tkimg-1.4.9-fno-common.patch [new file with mode: 0644]
dev-tcltk/tkimg/tkimg-1.4.9.ebuild

diff --git a/dev-tcltk/tkimg/files/tkimg-1.4.9-fno-common.patch b/dev-tcltk/tkimg/files/tkimg-1.4.9-fno-common.patch
new file mode 100644 (file)
index 0000000..307dfe3
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/libpng/pngtclDecls.h     2020-04-13 20:16:18.542559383 +0200
++++ b/libpng/pngtclDecls.h     2020-04-13 20:16:33.921314336 +0200
+@@ -1369,6 +1369,8 @@
+ #ifdef __cplusplus
+ extern "C" {
++#else
++extern
+ #endif
+ PNG_IMPEXP const PngtclStubs *pngtclStubsPtr;
+ #ifdef __cplusplus
index d2c7d256208b089f3cf011db5fd8a3e5823d6945..e5bccdee84c1fa92bfe41ac7ecee8e6ad1898e16 100644 (file)
@@ -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
@@ -42,6 +42,7 @@ PATCHES=(
        "${WORKDIR}"/${PN}-1.4.7-png.patch
        "${WORKDIR}"/${PN}-1.4.7-tiff.patch
        "${FILESDIR}"/${PN}-1.4-jpeg-9.patch
+       "${FILESDIR}"/${P}-fno-common.patch
 )
 
 src_prepare() {