From c9705b34ded8f83e9ef5d79dca33c764052e2ef0 Mon Sep 17 00:00:00 2001 From: Jamie Lenehan Date: Tue, 3 Oct 2006 22:44:31 +0000 Subject: cpan.bbclass: If a module attempts to use LDDFLAGS to link then it will be linking against the host libraries. Modify LDDFLAGS as part of the other modifications that already occur. --- classes/cpan.bbclass | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'classes/cpan.bbclass') diff --git a/classes/cpan.bbclass b/classes/cpan.bbclass index f883867a80..74bbebf882 100644 --- a/classes/cpan.bbclass +++ b/classes/cpan.bbclass @@ -11,8 +11,12 @@ cpan_do_configure () { perl Makefile.PL ${EXTRA_CPANFLAGS} if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then . ${STAGING_DIR}/${TARGET_SYS}/perl/config.sh - sed -e "s:\(SITELIBEXP = \).*:\1${sitelibexp}:; s:\(SITEARCHEXP = \).*:\1${sitearchexp}:; s:\(INSTALLVENDORLIB = \).*:\1${D}${libdir}/perl5/site_perl/${version}:; s:\(INSTALLVENDORARCH = \).*:\1${D}${libdir}/perl5/site_perl/${version}:" < Makefile > Makefile.new - mv Makefile.new Makefile + sed -i -e "s:\(SITELIBEXP = \).*:\1${sitelibexp}:" \ + -e "s:\(SITEARCHEXP = \).*:\1${sitearchexp}:" \ + -e "s:\(INSTALLVENDORLIB = \).*:\1${D}${libdir}/perl5/site_perl/${version}:" \ + -e "s:\(INSTALLVENDORARCH = \).*:\1${D}${libdir}/perl5/site_perl/${version}:" \ + -e "s:\(LDDLFLAGS.*\)${STAGING_DIR}/${BUILD_SYS}/lib:\1${STAGING_LIBDIR}:" \ + Makefile fi } -- cgit v1.2.3