mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 04:22:34 +03:00
Added debug options for --enable-maintainer mode
Also, added extra warnings and now all warnongs threaded as errors. Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
c9b4b0159d
commit
3518f7c585
@ -13,7 +13,6 @@ AM_INIT_AUTOMAKE(mc, ${VERSION} )
|
|||||||
|
|
||||||
AM_CONFIG_HEADER(config.h)
|
AM_CONFIG_HEADER(config.h)
|
||||||
AM_MAINTAINER_MODE
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
AC_CANONICAL_HOST
|
AC_CANONICAL_HOST
|
||||||
|
|
||||||
AC_USE_SYSTEM_EXTENSIONS
|
AC_USE_SYSTEM_EXTENSIONS
|
||||||
@ -523,6 +522,12 @@ if test -z "$ac_env_CFLAGS_set"; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test x$USE_MAINTAINER_MODE = xyes; then
|
||||||
|
CFLAGS_WARNINGS="-Wall -Werror -Wwrite-strings -Wnested-externs -Wsign-compare -Wuninitialized"
|
||||||
|
CFLAGS_DEBUG="-g3 -O -ggdb"
|
||||||
|
CFLAGS="$CFLAGS $CFLAGS_WARNINGS $CFLAGS_DEBUG"
|
||||||
|
fi
|
||||||
|
|
||||||
AC_SUBST(CFLAGS)
|
AC_SUBST(CFLAGS)
|
||||||
AC_SUBST(CPPFLAGS)
|
AC_SUBST(CPPFLAGS)
|
||||||
AC_SUBST(LDFLAGS)
|
AC_SUBST(LDFLAGS)
|
||||||
|
Loading…
Reference in New Issue
Block a user