summaryrefslogtreecommitdiffstats
path: root/bin/build
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2003-09-09 17:55:58 +0000
committerChris Larson <clarson@kergoth.com>2003-09-09 17:55:58 +0000
commitd463ae45626f2d269ade06d2adace300e8d70fcf (patch)
tree4da87d094d36cab890aadc96f18d04bfb9ff266b /bin/build
parent442044a5dfe71cd7d586a6259499de7fcba60e50 (diff)
downloadbitbake-contrib-d463ae45626f2d269ade06d2adace300e8d70fcf.tar.gz
Add libtool handling to oe_runconf. First, locates any ltmain.sh files in the source tree and updates them with ours. Then, runs the configure. Finally, searches for produced libtool binaries and seds out the hardcoded sys_lib_search_path_spec and sys_lib_dlsearch_path_spec vars.
Diffstat (limited to 'bin/build')
-rw-r--r--bin/build/oebuild.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/build/oebuild.sh b/bin/build/oebuild.sh
index bba4a3014..ed34ec867 100644
--- a/bin/build/oebuild.sh
+++ b/bin/build/oebuild.sh
@@ -260,6 +260,13 @@ unpack() {
oe_runconf() {
+ if [ "${PN}" != "libtool" ] && \
+ [ -e ${STAGING_DIR}/share/libtool/ltmain.sh ]; then
+ oenote "Installing our ltmain.sh..."
+ for lt in `find ${S} -name ltmain.sh`; do
+ install -m 0644 ${STAGING_DIR}/share/libtool/ltmain.sh $lt
+ done
+ fi
if [ -x ${S}/configure ] ; then
test -z "${BUILD_SYS}" || EXTRA_OECONF="--build=${BUILD_SYS} ${EXTRA_OECONF}"
test -z "${TARGET_SYS}" || EXTRA_OECONF="--target=${TARGET_SYS} ${EXTRA_OECONF}"
@@ -284,6 +291,10 @@ oe_runconf() {
else
die "no configure script found"
fi
+ for lt in `find ${S} -name libtool`; do
+ mv $lt $lt.old && \
+ cat $lt.old | sed -e 's,^sys_lib_search_path_spec=.*,sys_lib_search_path_spec="",; s,^sys_lib_dlsearch_path_spec=.*,sys_lib_dlsearch_path_spec="",' > $lt
+ done
}
oe_runmake() {