sys-apps/texinfo: Respect CC/CPPFLAGS/CFLAGS/LDFLAGS.
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Sat, 23 Feb 2019 15:40:53 +0000 (16:40 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Sat, 23 Feb 2019 15:42:12 +0000 (16:42 +0100)
Closes: https://bugs.gentoo.org/622576
Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
sys-apps/texinfo/texinfo-6.6-r1.ebuild [moved from sys-apps/texinfo/texinfo-6.6.ebuild with 82% similarity]

similarity index 82%
rename from sys-apps/texinfo/texinfo-6.6.ebuild
rename to sys-apps/texinfo/texinfo-6.6-r1.ebuild
index 41f0f7dd61c791e9550234dbfab20cf36ce2f33e..592407ddde3fd1f063b238eb71b4663bbded8adf 100644 (file)
@@ -7,7 +7,7 @@
 
 EAPI=6
 
-inherit flag-o-matic
+inherit flag-o-matic toolchain-funcs
 
 DESCRIPTION="The GNU info program and utilities"
 HOMEPAGE="https://www.gnu.org/software/texinfo/"
@@ -31,6 +31,9 @@ DEPEND="${RDEPEND}
        nls? ( >=sys-devel/gettext-0.19.6 )"
 
 src_configure() {
+       # Respect compiler and CPPFLAGS/CFLAGS/LDFLAGS for Perl extensions. #622576
+       local -x PERL_EXT_CC="$(tc-getCC)" PERL_EXT_CPPFLAGS="${CPPFLAGS}" PERL_EXT_CFLAGS="${CFLAGS}" PERL_EXT_LDFLAGS="${LDFLAGS}"
+
        use static && append-ldflags -static
        local myeconfargs=(
                --with-external-libintl-perl