Otherwise host flags leak in and may break cross-building if `-march` is present.
Signed-off-by: Luca Barbato <
lu_zero@gentoo.org>
---
eclass/perl-module.eclass | 2 ++
1 file changed, 2 insertions(+)
diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass
index 27cd053f0ea7..c25a9f81465f 100644
--- a/eclass/perl-module.eclass
+++ b/eclass/perl-module.eclass
@@ -296,6 +296,8 @@ perl-module_src_configure() {
RANLIB="$(tc-getRANLIB)" \
OPTIMIZE="${CFLAGS}" \
LDFLAGS="${LDFLAGS}" \
+ CCFLAGS="${CFLAGS}" \
+ LDDLFLAGS="-shared ${LDFLAGS}" \
PREFIX="${EPREFIX}"/usr \
INSTALLDIRS=vendor \
INSTALLMAN3DIR='none' \
--
2.45.2
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)