Browse Source

libtool: adapted LIBTOOL-QUIRK to libtool2

cross
Alejandro Mery 17 years ago
parent
commit
584d69cb22
  1. 17
      base/libtool/parse-config

17
base/libtool/parse-config

@ -2,6 +2,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# #
# Filename: package/.../libtool/parse-config # Filename: package/.../libtool/parse-config
# Copyright (C) 2009 The OpenSDE Project
# Copyright (C) 2006 The T2 SDE Project # Copyright (C) 2006 The T2 SDE Project
# #
# More information can be found in the files COPYING and README. # More information can be found in the files COPYING and README.
@ -17,18 +18,24 @@
libtool_fixup() libtool_fixup()
{ {
local pref= ltmain=
if atstage native; then if atstage native; then
pref=$root pref="$root"
else else
pref=$base/build/$SDECFG_ID/TOOLCHAIN/tools.cross pref="$base/build/$SDECFG_ID/TOOLCHAIN/tools.cross"
fi fi
for ltmain in "$pref/usr/share/libtool"/{,config/}ltmain.sh; do
[ ! -s "$ltmain" ] || break
done
[ -f configure.in -o -f configure.ac ] && libtoolize -c -f [ -f configure.in -o -f configure.ac ] && libtoolize -c -f
find -name libtool -o -name ltmain.sh | while read fn; do find -name libtool -o -name ltmain.sh | while read fn; do
case $fn in case "$fn" in
*libtool) cp -fv $pref/usr/bin/libtool $fn ;; *libtool) cp -fv "$pref/usr/bin/libtool" "$fn" ;;
*) cp -fv $pref/usr/share/libtool/ltmain.sh $fn ;; *) cp -fv "$ltmain" "$fn" ;;
esac esac
done done
} }

Loading…
Cancel
Save