mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
r7419: when we have both --enable-developer and --enable-debug we don't need -g twice in the
CFLAGS
(This used to be commit 1383c024d1
)
This commit is contained in:
parent
a6717fae68
commit
32e935c8c6
@ -130,23 +130,24 @@ AC_SUBST(bindir)
|
|||||||
AC_SUBST(sbindir)
|
AC_SUBST(sbindir)
|
||||||
AC_SUBST(swatdir)
|
AC_SUBST(swatdir)
|
||||||
|
|
||||||
debug=no
|
|
||||||
AC_ARG_ENABLE(debug,
|
|
||||||
[ --enable-debug Turn on compiler debugging information (default=no)],
|
|
||||||
[if eval "test x$enable_debug = xyes"; then
|
|
||||||
debug=yes
|
|
||||||
CFLAGS="${CFLAGS} -g"
|
|
||||||
fi])
|
|
||||||
|
|
||||||
developer=no
|
developer=no
|
||||||
AC_ARG_ENABLE(developer, [ --enable-developer Turn on developer warnings and debugging (default=no)],
|
AC_ARG_ENABLE(developer, [ --enable-developer Turn on developer warnings and debugging (default=no)],
|
||||||
[if eval "test x$enable_developer = xyes"; then
|
[if test x$enable_developer = xyes; then
|
||||||
debug=yes
|
debug=yes
|
||||||
CFLAGS="${CFLAGS} -g -Wall"
|
CFLAGS="${CFLAGS} -g -Wall"
|
||||||
developer=yes
|
developer=yes
|
||||||
DEVELOPER_CFLAGS="-Wshadow -Werror-implicit-function-declaration -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wdeclaration-after-statement -Wmissing-format-attribute -Wformat=2 -Wno-format-y2k -DDEBUG_PASSWORD -DDEVELOPER"
|
DEVELOPER_CFLAGS="-Wshadow -Werror-implicit-function-declaration -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wdeclaration-after-statement -Wmissing-format-attribute -Wformat=2 -Wno-format-y2k -DDEBUG_PASSWORD -DDEVELOPER"
|
||||||
fi])
|
fi])
|
||||||
|
|
||||||
|
debug=no
|
||||||
|
AC_ARG_ENABLE(debug,
|
||||||
|
[ --enable-debug Turn on compiler debugging information (default=no)],
|
||||||
|
[if test x$enable_debug = xyes -a test x$enable_developer != xyes; then
|
||||||
|
debug=yes
|
||||||
|
CFLAGS="${CFLAGS} -g"
|
||||||
|
fi])
|
||||||
|
|
||||||
|
|
||||||
experimental=no
|
experimental=no
|
||||||
AC_ARG_ENABLE(experimental, [ --enable-experimental Turn on experimental features (default=no)],
|
AC_ARG_ENABLE(experimental, [ --enable-experimental Turn on experimental features (default=no)],
|
||||||
[if eval "test x$enable_experimental = xyes"; then
|
[if eval "test x$enable_experimental = xyes"; then
|
||||||
|
Loading…
Reference in New Issue
Block a user