From 4833911e2278534570c947abb82d07d71dcd250b Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 15 Oct 2008 00:21:35 +0200 Subject: [PATCH] xbps.sh: override all libtool scripts after configure. --HG-- extra : convert_revision : 555b2d477c4e0691a8d1994ad7ee264c161e372f --- xbps.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/xbps.sh b/xbps.sh index 0ea8588d3ed..999fa01828d 100755 --- a/xbps.sh +++ b/xbps.sh @@ -552,21 +552,21 @@ fetch_distfiles() fixup_tmpl_libtool() { - local lt_file="$wrksrc/libtool" - # # If package has a libtool file replace it with ours, so that # we use the master directory while relinking, all will be fine # once the package is stowned. # - if [ -f "$lt_file" -a -f "$XBPS_MASTERDIR/bin/libtool" ]; then - $rm_cmd -f $wrksrc/libtool - $rm_cmd -f $wrksrc/ltmain.sh - $ln_cmd -s $XBPS_MASTERDIR/bin/libtool $lt_file + for f in $($find_cmd $wrksrc -type f -name libtool\*); do + if [ -f $f ]; then + $rm_cmd -f $f + $ln_cmd -s $XBPS_MASTERDIR/bin/libtool $f + fi + done + + if [ -f $wrksrc/ltmain.sh ]; then $ln_cmd -s $XBPS_MASTERDIR/share/libtool/config/ltmain.sh \ - $wrksrc/ltmain.sh - elif [ -f "$XBPS_MASTERDIR/bin/libtool" ]; then - $ln_cmd -s $XBPS_MASTERDIR/bin/libtool $lt_file + $wrksrc/ltmain.sh fi } @@ -676,9 +676,6 @@ configure_src_phase() set_build_vars - # Fixup libtool script if necessary - fixup_tmpl_libtool - # # Packages using GNU autoconf # @@ -739,6 +736,9 @@ configure_src_phase() unset eval ${f%=*} done + # Override libtool scripts if necessary + fixup_tmpl_libtool + $touch_cmd -f $XBPS_CONFIGURE_DONE }