Browse Source

libtool: adapted LIBTOOL-QUIRK to libtool2

cross
Alejandro Mery 16 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.
#
# Filename: package/.../libtool/parse-config
# Copyright (C) 2009 The OpenSDE Project
# Copyright (C) 2006 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
@ -17,18 +18,24 @@
libtool_fixup()
{
local pref= ltmain=
if atstage native; then
pref=$root
pref="$root"
else
pref=$base/build/$SDECFG_ID/TOOLCHAIN/tools.cross
pref="$base/build/$SDECFG_ID/TOOLCHAIN/tools.cross"
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
find -name libtool -o -name ltmain.sh | while read fn; do
case $fn in
*libtool) cp -fv $pref/usr/bin/libtool $fn ;;
*) cp -fv $pref/usr/share/libtool/ltmain.sh $fn ;;
case "$fn" in
*libtool) cp -fv "$pref/usr/bin/libtool" "$fn" ;;
*) cp -fv "$ltmain" "$fn" ;;
esac
done
}

Loading…
Cancel
Save