mirror of https://github.com/encounter/SDL.git
libtool upgrade to 2.4.6 - 11/n: FreeBSD elftoolchain strip support
http://savannah.gnu.org/patch/?8675 http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=commitdiff;h=d7c8d3b43fef8641f4354edaa0429d157259bf56
This commit is contained in:
parent
3cbd561690
commit
b5dc1eedb8
|
@ -2202,18 +2202,26 @@ m4_defun([_LT_CMD_STRIPLIB],
|
||||||
striplib=
|
striplib=
|
||||||
old_striplib=
|
old_striplib=
|
||||||
AC_MSG_CHECKING([whether stripping libraries is possible])
|
AC_MSG_CHECKING([whether stripping libraries is possible])
|
||||||
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
|
if test -z "$STRIP"; then
|
||||||
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
AC_MSG_RESULT([no])
|
||||||
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
else
|
||||||
|
if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
|
||||||
|
old_striplib="$STRIP --strip-debug"
|
||||||
|
striplib="$STRIP --strip-unneeded"
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
else
|
else
|
||||||
# FIXME - insert some real tests, host_os isn't really good enough
|
|
||||||
case $host_os in
|
case $host_os in
|
||||||
darwin*)
|
darwin*)
|
||||||
if test -n "$STRIP"; then
|
# FIXME - insert some real tests, host_os isn't really good enough
|
||||||
striplib="$STRIP -x"
|
striplib="$STRIP -x"
|
||||||
old_striplib="$STRIP -S"
|
old_striplib="$STRIP -S"
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
|
;;
|
||||||
|
freebsd*)
|
||||||
|
if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
|
||||||
|
old_striplib="$STRIP --strip-debug"
|
||||||
|
striplib="$STRIP --strip-unneeded"
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
fi
|
fi
|
||||||
|
@ -2223,6 +2231,7 @@ else
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
|
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
|
||||||
_LT_DECL([], [striplib], [1])
|
_LT_DECL([], [striplib], [1])
|
||||||
])# _LT_CMD_STRIPLIB
|
])# _LT_CMD_STRIPLIB
|
||||||
|
|
Loading…
Reference in New Issue