From: Alfredo Tupone Date: Mon, 13 Apr 2020 18:23:49 +0000 (+0200) Subject: dev-tcltk/tkimg: build with fno-common X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5f4b367799f0fc945ff6399b985755088abe02b4;p=gentoo.git dev-tcltk/tkimg: build with fno-common Closes: https://bugs.gentoo.org/706838 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alfredo Tupone --- 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 index 000000000000..307dfe314375 --- /dev/null +++ b/dev-tcltk/tkimg/files/tkimg-1.4.9-fno-common.patch @@ -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 diff --git a/dev-tcltk/tkimg/tkimg-1.4.9.ebuild b/dev-tcltk/tkimg/tkimg-1.4.9.ebuild index d2c7d256208b..e5bccdee84c1 100644 --- a/dev-tcltk/tkimg/tkimg-1.4.9.ebuild +++ b/dev-tcltk/tkimg/tkimg-1.4.9.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 @@ -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() {