--enable-debug now checks if gcc is used before it sets all those gcc-
specific options. This should make this option work on more platforms with other compilers.
This commit is contained in:
Родитель
9e612b5550
Коммит
c4e9ef199e
|
@ -743,7 +743,10 @@ AC_ARG_ENABLE(debug,
|
|||
*) AC_MSG_RESULT(yes)
|
||||
|
||||
CPPFLAGS="$CPPFLAGS -DMALLOCDEBUG"
|
||||
CFLAGS="-W -Wall -Wwrite-strings -pedantic -Wundef -Wpointer-arith -Wcast-align -Wnested-externs -g"
|
||||
CFLAGS="$CFLAGS -g"
|
||||
if test "$GCC" = "yes"; then
|
||||
CFLAGS="$CFLAGS -W -Wall -Wwrite-strings -pedantic -Wundef -Wpointer-arith -Wcast-align -Wnested-externs"
|
||||
fi
|
||||
;;
|
||||
esac ],
|
||||
AC_MSG_RESULT(no)
|
||||
|
|
Загрузка…
Ссылка в новой задаче