Do not make libtool transforms in the chroot.

--HG--
extra : convert_revision : 4467323784c7e690b303ee2c278f8db36a102e1d
This commit is contained in:
Juan RP 2008-10-24 05:20:12 +02:00
parent 7adb9a2f23
commit 8e9465f816

View File

@ -531,6 +531,9 @@ fixup_libtool_file()
[ "$pkgname" = "libtool" -o ! -f $wrksrc/libtool ] && return 0
[ -n "$no_libtool_fixup" ] && return 0
# If we are being invoked by a chroot, don't transform stuff.
[ "$XBPS_MASTERDIR" = "/" ] && return 0
sed -i -e \
's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec="-Wl,-rpath /usr/lib"|g' \
$wrksrc/libtool
@ -543,6 +546,9 @@ fixup_la_files()
# Ignore libtool itself
[ "$pkgname" = "libtool" ] && return 0
# If we are being invoked by a chroot, don't transform stuff.
[ "$XBPS_MASTERDIR" = "/" ] && return 0
#
# Replace hardcoded or incorrect paths with correct ones.
#