mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
configure.ac: restore CPPFLAGS and CFLAGS to list of iterated options rendered into options.h; delete stale .build_params when ENABLED_REPRODUCIBLE_BUILD.
This commit is contained in:
@@ -8571,9 +8571,11 @@ fi
|
|||||||
|
|
||||||
if test "$ENABLED_REPRODUCIBLE_BUILD" != "yes"
|
if test "$ENABLED_REPRODUCIBLE_BUILD" != "yes"
|
||||||
then
|
then
|
||||||
echo "#define LIBWOLFSSL_CONFIGURE_ARGS \"$ac_configure_args\"" > ${output_objdir}/.build_params &&
|
echo "#define LIBWOLFSSL_CONFIGURE_ARGS \"$ac_configure_args\"" > "${output_objdir}/.build_params" &&
|
||||||
echo "#define LIBWOLFSSL_GLOBAL_CFLAGS \"$CPPFLAGS $AM_CPPFLAGS $CFLAGS $AM_CFLAGS\" LIBWOLFSSL_GLOBAL_EXTRA_CFLAGS" >> ${output_objdir}/.build_params ||
|
echo "#define LIBWOLFSSL_GLOBAL_CFLAGS \"$CPPFLAGS $AM_CPPFLAGS $CFLAGS $AM_CFLAGS\" LIBWOLFSSL_GLOBAL_EXTRA_CFLAGS" >> "${output_objdir}/.build_params" ||
|
||||||
AC_MSG_ERROR([Couldn't create ${output_objdir}/.build_params.])
|
AC_MSG_ERROR([Couldn't create ${output_objdir}/.build_params.])
|
||||||
|
else
|
||||||
|
rm -f "${output_objdir}/.build_params"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# generate user options header
|
# generate user options header
|
||||||
@@ -8602,7 +8604,7 @@ echo "extern \"C\" {" >> $OPTION_FILE
|
|||||||
echo "#endif" >> $OPTION_FILE
|
echo "#endif" >> $OPTION_FILE
|
||||||
echo "" >> $OPTION_FILE
|
echo "" >> $OPTION_FILE
|
||||||
|
|
||||||
for option in $AM_CPPFLAGS $AM_CFLAGS; do
|
for option in $CPPFLAGS $AM_CPPFLAGS $CFLAGS $AM_CFLAGS; do
|
||||||
opt_type=$(echo $option | colrm 3)
|
opt_type=$(echo $option | colrm 3)
|
||||||
case "$opt_type" in
|
case "$opt_type" in
|
||||||
-D)
|
-D)
|
||||||
|
Reference in New Issue
Block a user