forked from wolfSSL/wolfssl
Configure Update
1. Initialize CXXFLAGS (C++ compiler flags) the same way we do CFLAGS. 2. Add CPPFLAGS (C preprocessor flags) to the options.h file with the other CFLAGS.
This commit is contained in:
@ -10,9 +10,11 @@ AC_INIT([wolfssl],[3.14.0],[https://github.com/wolfssl/wolfssl/issues],[wolfssl]
|
|||||||
|
|
||||||
AC_CONFIG_AUX_DIR([build-aux])
|
AC_CONFIG_AUX_DIR([build-aux])
|
||||||
|
|
||||||
# The following sets CFLAGS to empty if unset on command line. We do not want
|
# The following sets CFLAGS and CXXFLAGS to empty if unset on command line.
|
||||||
# the default "-g -O2" that AC_PROG_CC sets automatically.
|
# We do not want the default "-g -O2" that AC_PROG_CC AC_PROG_CXX sets
|
||||||
|
# automatically.
|
||||||
: ${CFLAGS=""}
|
: ${CFLAGS=""}
|
||||||
|
: ${CXXFLAGS=""}
|
||||||
|
|
||||||
AC_CANONICAL_HOST
|
AC_CANONICAL_HOST
|
||||||
AC_CANONICAL_BUILD
|
AC_CANONICAL_BUILD
|
||||||
@ -4104,7 +4106,7 @@ if test "$ENABLED_DISTRO" = "no"
|
|||||||
then
|
then
|
||||||
CFLAGS="$CFLAGS $USER_C_EXTRA_FLAGS"
|
CFLAGS="$CFLAGS $USER_C_EXTRA_FLAGS"
|
||||||
fi
|
fi
|
||||||
OPTION_FLAGS="$USER_CFLAGS $USER_C_EXTRA_FLAGS $AM_CFLAGS"
|
OPTION_FLAGS="$USER_CFLAGS $USER_C_EXTRA_FLAGS $CPPFLAGS $AM_CFLAGS"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user