Add -finline-functions if we're gcc and it works
This commit was SVN r1135.
Этот коммит содержится в:
родитель
aab81a9261
Коммит
c39ba9ea6e
@ -57,6 +57,18 @@ if test "$GCC" = "yes" -a "$WANT_PICKY_COMPILER" = 1; then
|
|||||||
unset add
|
unset add
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# See if this version of gcc allows -finline-functions
|
||||||
|
if test "$GCC" = "yes"; then
|
||||||
|
CFLAGS_orig="$CFLAGS"
|
||||||
|
CFLAGS="$CFLAGS -finline-functions"
|
||||||
|
add=
|
||||||
|
AC_TRY_COMPILE([], [], add=" -finline-functions")
|
||||||
|
CFLAGS="$CFLAGS_orig$add"
|
||||||
|
LAM_UNIQ(CFLAGS)
|
||||||
|
AC_MSG_WARN([$add has been added to CFLAGS])
|
||||||
|
unset add
|
||||||
|
fi
|
||||||
|
|
||||||
# Preload the optflags for the case where the user didn't specify any.
|
# Preload the optflags for the case where the user didn't specify any.
|
||||||
# If we're using GNU compilers, use -O3 (since it GNU doesn't require
|
# If we're using GNU compilers, use -O3 (since it GNU doesn't require
|
||||||
# all compilation units to be compiled with the same level of
|
# all compilation units to be compiled with the same level of
|
||||||
|
@ -44,6 +44,18 @@ if test "$GCC" = "yes" -a "$WANT_PICKY_COMPILER" = 1; then
|
|||||||
unset add
|
unset add
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# See if this version of gcc allows -finline-functions
|
||||||
|
if test "$GCC" = "yes"; then
|
||||||
|
CXXFLAGS_orig="$CXXFLAGS"
|
||||||
|
CXXFLAGS="$CXXFLAGS -finline-functions"
|
||||||
|
add=
|
||||||
|
AC_TRY_COMPILE([], [], add=" -finline-functions")
|
||||||
|
CXXFLAGS="$CXXFLAGS_orig$add"
|
||||||
|
LAM_UNIQ(CXXFLAGS)
|
||||||
|
AC_MSG_WARN([$add has been added to CXXFLAGS])
|
||||||
|
unset add
|
||||||
|
fi
|
||||||
|
|
||||||
# Check for special things due to C++ exceptions
|
# Check for special things due to C++ exceptions
|
||||||
|
|
||||||
WRAPPER_EXTRA_CFLAGS=
|
WRAPPER_EXTRA_CFLAGS=
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user