2011-01-19 15:43:40 +00:00
|
|
|
require libtool-${PV}.inc
|
2008-04-13 22:15:59 +00:00
|
|
|
|
2011-11-29 19:30:40 +00:00
|
|
|
PR = "${INC_PR}.0"
|
2008-04-13 22:15:59 +00:00
|
|
|
|
libtool: add bash to RDEPENDS_libtool
* Set CONFIG_SHELL="/bin/bash"
* Add bash to RDEPENDS_libtool
We had already set CONFIG_SHELL="/bin/bash" for libtool-native,
libtool-cross and nativesdk-libtool, now also set for target libtool, if
we don't set this, libtool would use /bin/sh, /bin/bash, /bin/ksh or
/bin/sh5 according to the host, and the build is undetermined, this
patch can fix the problem, libtool is a development tool, rdepends on
bash should not cause toubles (for example, the size of the image)
Have tried to set CONFIG_SHELL="/bin/sh" (/bin/sh -> dash), but there is
still a few bashsim in the output libtool.
(From OE-Core rev: c07f09b1b261b0d480544a6100f6a83835c62019)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-18 06:24:03 +00:00
|
|
|
RDEPENDS_${PN} += "bash"
|
|
|
|
|
2009-11-27 11:32:43 +00:00
|
|
|
#
|
|
|
|
# We want the results of libtool-cross preserved - don't stage anything ourselves.
|
|
|
|
#
|
|
|
|
SYSROOT_PREPROCESS_FUNCS += "libtool_sysroot_preprocess"
|
|
|
|
|
2014-11-03 09:08:42 +00:00
|
|
|
do_install_append () {
|
|
|
|
sed -e 's@--sysroot=${STAGING_DIR_HOST}@@g' \
|
|
|
|
-e 's@${STAGING_DIR_HOST}@@g' \
|
|
|
|
-e 's@^\(sys_lib_search_path_spec="\).*@\1${libdir} ${base_libdir}"@' \
|
|
|
|
-e 's@^\(compiler_lib_search_dirs="\).*@\1${libdir} ${base_libdir}"@' \
|
|
|
|
-e 's@^\(compiler_lib_search_path="\).*@\1${libdir} ${base_libdir}"@' \
|
|
|
|
-e 's@^\(predep_objects="\).*@\1"@' \
|
|
|
|
-e 's@^\(postdep_objects="\).*@\1"@' \
|
|
|
|
-i ${D}${bindir}/libtool
|
|
|
|
}
|
|
|
|
|
2009-11-27 11:32:43 +00:00
|
|
|
libtool_sysroot_preprocess () {
|
2011-01-18 08:17:58 +00:00
|
|
|
rm -rf ${SYSROOT_DESTDIR}${bindir}/*
|
|
|
|
rm -rf ${SYSROOT_DESTDIR}${datadir}/aclocal/*
|
|
|
|
rm -rf ${SYSROOT_DESTDIR}${datadir}/libtool/config/*
|
2009-11-27 17:42:45 +00:00
|
|
|
}
|
2010-12-08 04:06:29 +00:00
|
|
|
|