[oe-commits] org.oe.dev cpan.bbclass: If a module attempts to use LDDFLAGS to link then it will be
lenehan commit
openembedded-commits at lists.openembedded.org
Tue Oct 3 22:51:11 UTC 2006
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.
Author: lenehan at openembedded.org
Branch: org.openembedded.dev
Revision: 0bd5ac1688179483a79586c0354811695949db9d
ViewMTN: http://monotone.openembedded.org/revision.psp?id=0bd5ac1688179483a79586c0354811695949db9d
Files:
1
classes/cpan.bbclass
Diffs:
#
# mt diff -rc23ea9779d6643bfeed4e1dfac0343b3159d5b64 -r0bd5ac1688179483a79586c0354811695949db9d
#
#
#
# patch "classes/cpan.bbclass"
# from [f4201c2e854314f7fbaece04b6e489b58e598e2d]
# to [c7d1304c1f4475785c59af38cfea6d8cccffcab1]
#
============================================================
--- classes/cpan.bbclass f4201c2e854314f7fbaece04b6e489b58e598e2d
+++ classes/cpan.bbclass c7d1304c1f4475785c59af38cfea6d8cccffcab1
@@ -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
}
More information about the Openembedded-commits
mailing list