change to C_EXTRA_FLAGS for user addtions to CFLAGS since CFLAGS may contain -g -O2 even if user doesn't override, no way to tell
This commit is contained in:
parent
6737f5beb9
commit
0b4ed2c633
@ -40,6 +40,10 @@ CYASSL_LIBRARY_VERSION=3:3:0
|
|||||||
# +- increment if interfaces have been added, removed or changed
|
# +- increment if interfaces have been added, removed or changed
|
||||||
AC_SUBST(CYASSL_LIBRARY_VERSION)
|
AC_SUBST(CYASSL_LIBRARY_VERSION)
|
||||||
|
|
||||||
|
# capture user C_EXTRA_FLAGS from ./configure line, CFLAGS may hold -g -O2 even
|
||||||
|
# if user doesn't override, no way to tell
|
||||||
|
USER_C_EXTRA_FLAGS="$C_EXTRA_FLAGS"
|
||||||
|
|
||||||
LT_INIT([win32-dll])
|
LT_INIT([win32-dll])
|
||||||
LT_LANG([C++])
|
LT_LANG([C++])
|
||||||
LT_LANG([C])
|
LT_LANG([C])
|
||||||
@ -700,6 +704,9 @@ fi])
|
|||||||
|
|
||||||
AX_HARDEN_CC_COMPILER_FLAGS
|
AX_HARDEN_CC_COMPILER_FLAGS
|
||||||
|
|
||||||
|
# add user C_EXTRA_FLAGS back
|
||||||
|
CFLAGS="$CFLAGS $USER_C_EXTRA_FLAGS"
|
||||||
|
|
||||||
CREATE_HEX_VERSION
|
CREATE_HEX_VERSION
|
||||||
AC_SUBST([AM_CPPFLAGS])
|
AC_SUBST([AM_CPPFLAGS])
|
||||||
AC_SUBST([AM_CFLAGS])
|
AC_SUBST([AM_CFLAGS])
|
||||||
|
@ -97,6 +97,7 @@
|
|||||||
|
|
||||||
AC_LANG_PUSH([C])
|
AC_LANG_PUSH([C])
|
||||||
|
|
||||||
|
CFLAGS=
|
||||||
ac_cv_warnings_as_errors=no
|
ac_cv_warnings_as_errors=no
|
||||||
ax_append_compile_cflags_extra=
|
ax_append_compile_cflags_extra=
|
||||||
AS_IF([test "$ac_cv_vcs_checkout" = "yes"],[
|
AS_IF([test "$ac_cv_vcs_checkout" = "yes"],[
|
||||||
|
Loading…
Reference in New Issue
Block a user