diff options
author | Jamie Lenehan <lenehan@twibble.org> | 2006-10-03 22:44:31 +0000 |
---|---|---|
committer | Jamie Lenehan <lenehan@twibble.org> | 2006-10-03 22:44:31 +0000 |
commit | c9705b34ded8f83e9ef5d79dca33c764052e2ef0 (patch) | |
tree | d09898a4cbafc9ad911c136e7420d1770d1ce928 /classes/cpan.bbclass | |
parent | 6f37847caf3431cb02a89c016532a816769ed141 (diff) |
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.
Diffstat (limited to 'classes/cpan.bbclass')
-rw-r--r-- | classes/cpan.bbclass | 8 |
1 files changed, 6 insertions, 2 deletions
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 } |