forked from wolfSSL/wolfssl
Update autoconf scripts
1. Since AX_HARDEN is called always, moved the few items set in configure for gcc-hardening to AX_HARDEN. 2. Dropped the macros that AX_DEBUG was setting that we haven't been using and aren't using now.
This commit is contained in:
@@ -51,9 +51,7 @@ AC_DEFUN([AX_DEBUG],
|
||||
[AS_HELP_STRING([--enable-debug],
|
||||
[Add debug code/turns off optimizations (yes|no) @<:@default=no@:>@])],
|
||||
[ax_enable_debug=yes
|
||||
AC_DEFINE([DEBUG],[1],[Define to 1 to enable debugging code.])
|
||||
AX_ADD_AM_MACRO([AM_YFLAGS += --debug])
|
||||
AX_ADD_AM_MACRO([AM_CPPFLAGS += -D_GLIBCXX_DEBUG])],
|
||||
AC_DEFINE([DEBUG],[1],[Define to 1 to enable debugging code.])],
|
||||
[ax_enable_debug=no
|
||||
AC_SUBST([MCHECK])
|
||||
AC_DEFINE([DEBUG],[0],[Define to 1 to enable debugging code.])])
|
||||
|
@@ -156,6 +156,7 @@
|
||||
AX_APPEND_COMPILE_FLAGS([-Wunused-variable],,[$ax_append_compile_cflags_extra])
|
||||
AX_APPEND_COMPILE_FLAGS([-Wwrite-strings],,[$ax_append_compile_cflags_extra])
|
||||
AX_APPEND_COMPILE_FLAGS([-fwrapv],,[$ax_append_compile_cflags_extra])
|
||||
AX_APPEND_COMPILE_FLAGS([-fPIE],,[$ax_append_compile_cflags_extra])
|
||||
AC_LANG_POP
|
||||
])
|
||||
|
||||
|
Reference in New Issue
Block a user