configure.ac: more checks on STRIP
STRIP now depends on compilers, not on OS. Previous check against $target_os does no longer work.
This commit is contained in:
parent
1ab6034529
commit
d916a4c897
19
configure.ac
19
configure.ac
@ -3087,14 +3087,21 @@ AC_SUBST(DLEXT)
|
|||||||
AS_IF([test "$with_dln_a_out" = yes], [
|
AS_IF([test "$with_dln_a_out" = yes], [
|
||||||
STRIP=true
|
STRIP=true
|
||||||
], [
|
], [
|
||||||
AC_CHECK_TOOL(STRIP, strip, :)dnl
|
AC_MSG_CHECKING([for $STRIP flags])
|
||||||
|
AC_LINK_IFELSE([AC_LANG_PROGRAM], [AS_IF(
|
||||||
|
["${STRIP}" -A -n conftest$ac_exeext 2>/dev/null], [
|
||||||
|
AC_MSG_RESULT([-A -n])
|
||||||
|
STRIP="${STRIP} -A -n"
|
||||||
|
],
|
||||||
|
["${STRIP}" -S -x conftest$ac_exeext 2>/dev/null], [
|
||||||
|
AC_MSG_RESULT([-S -x])
|
||||||
|
STRIP="${STRIP} -S -x"
|
||||||
|
], [
|
||||||
|
AC_MSG_RESULT([none needed])
|
||||||
|
])
|
||||||
|
])
|
||||||
])
|
])
|
||||||
|
|
||||||
AS_CASE(["$target_os"],
|
|
||||||
[linux* | gnu* | k*bsd*-gnu | kopensolaris*-gnu], [
|
|
||||||
STRIP="$STRIP -S -x"],
|
|
||||||
[darwin*], [
|
|
||||||
STRIP="$STRIP -A -n"])
|
|
||||||
|
|
||||||
AC_ARG_WITH(ext,
|
AC_ARG_WITH(ext,
|
||||||
AC_HELP_STRING([--with-ext=EXTS],
|
AC_HELP_STRING([--with-ext=EXTS],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user