Skip to contentSkip to conversation

cpan_build.bbclass; added cc and ld flags to the perl Build.PL invocation

PATCH Superseded Frans Meulenbroeks 1 participant 2 messages Dec 26, 2010

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpan_build.bbclass; added cc and ld flags to the perl Build.PL invocation

Without these gcc would be used which resolves to /usr/bin/gcc and one gets an intel exe.
This showed up with libparams-validate-perl and libdatetime-perl The LDFLAGS are added to resolve the GNU_HASH QA error

---
 classes/cpan_build.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
classes/cpan_build.bbclass +1 -1
index 37f430d..070e061 100644
@@ -26,7 +26,7 @@ cpan_build_do_configure () {
 		# build for target
 		. ${STAGING_LIBDIR}/perl/config.sh
 		perl Build.PL --installdirs vendor \
-		        --config cc="${CC}" --config ld="${CCLD}" \
+		        --config cc="${CC} ${LDFLAGS}" --config ld="${CCLD} ${LDFLAGS}" \
 			--destdir ${D} \
 			--install_path lib="${datadir}/perl5" \
 			--install_path arch="${libdir}/perl5" \
Signature · 1 line
1.7.1