ICU-9217 fix configure for static library optimization
X-SVN-Rev: 31653
This commit is contained in:
parent
e88e050aa2
commit
15cb25c42d
13
icu4c/source/configure
vendored
13
icu4c/source/configure
vendored
@ -5266,13 +5266,24 @@ $as_echo_n "checking whether we can use static library optimization option... "
|
||||
;;
|
||||
esac
|
||||
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_link "$LINENO"; then :
|
||||
CHECK_STATIC_OPT_FLAG=yes
|
||||
else
|
||||
CHECK_STATIC_OPT_FLAG=no
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_STATIC_OPT_FLAG" >&5
|
||||
$as_echo "$CHECK_STATIC_OPT_FLAG" >&6; }
|
||||
if test "$CHECK_STATIC_OPT_FLAG" = no; then
|
||||
|
@ -285,7 +285,7 @@ if test "$ENABLE_STATIC" = "YES"; then
|
||||
;;
|
||||
esac
|
||||
|
||||
AC_LINK_IFELSE(AC_LANG_SOURCE, CHECK_STATIC_OPT_FLAG=yes, CHECK_STATIC_OPT_FLAG=no, )
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], [CHECK_STATIC_OPT_FLAG=yes], [CHECK_STATIC_OPT_FLAG=no])
|
||||
AC_MSG_RESULT($CHECK_STATIC_OPT_FLAG)
|
||||
if test "$CHECK_STATIC_OPT_FLAG" = no; then
|
||||
CPPFLAGS="${OLD_CPPFLAGS}"
|
||||
|
Loading…
Reference in New Issue
Block a user