* [gentoo-dev] [PATCH] perl-module.eclass: Override CCFLAGS and LDDLFLAGS
@ 2024-12-31 15:05 Luca Barbato
0 siblings, 0 replies; only message in thread
From: Luca Barbato @ 2024-12-31 15:05 UTC (permalink / raw
To: gentoo-dev; +Cc: Luca Barbato
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-12-31 15:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-31 15:05 [gentoo-dev] [PATCH] perl-module.eclass: Override CCFLAGS and LDDLFLAGS Luca Barbato
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox