mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
configure.ac: Optimization of building 'CFLAGS' variable.
Now user-defined CFLAG (from envirovement) have higest priority before internal definitions. Also, patch have change for respect code optimization options from user. Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
4bc224dd3c
commit
771a2958ad
@ -515,7 +515,11 @@ fi
|
|||||||
|
|
||||||
MC_CHECK_CFLAGS
|
MC_CHECK_CFLAGS
|
||||||
|
|
||||||
CFLAGS_OPTS=" -O2 "
|
CFLAGS_OPTS=""
|
||||||
|
|
||||||
|
if test x$CFLAGS = x; then
|
||||||
|
CFLAGS_OPTS=" -O2 "
|
||||||
|
fi
|
||||||
|
|
||||||
if test x$USE_MAINTAINER_MODE = xyes; then
|
if test x$USE_MAINTAINER_MODE = xyes; then
|
||||||
CFLAGS_OPTS="-g3 -O -ggdb"
|
CFLAGS_OPTS="-g3 -O -ggdb"
|
||||||
@ -530,8 +534,7 @@ AC_ARG_ENABLE(
|
|||||||
if test "x$enable_werror" = xyes; then
|
if test "x$enable_werror" = xyes; then
|
||||||
MC_CHECK_ONE_CFLAG([-Werror])
|
MC_CHECK_ONE_CFLAG([-Werror])
|
||||||
fi
|
fi
|
||||||
|
CFLAGS="$mc_configured_cflags $CFLAGS_OPTS $CFLAGS"
|
||||||
CFLAGS="$CFLAGS $mc_configured_cflags $CFLAGS_OPTS"
|
|
||||||
|
|
||||||
AC_SUBST(CFLAGS)
|
AC_SUBST(CFLAGS)
|
||||||
AC_SUBST(CPPFLAGS)
|
AC_SUBST(CPPFLAGS)
|
||||||
|
Loading…
Reference in New Issue
Block a user