mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
configure.ac move --enable-distro handling to top (preceding --enable-reproducible-build handling), and turn on reproducible-build by default when enable-distro; fix spelling error in reproducible-build help text.
This commit is contained in:
36
configure.ac
36
configure.ac
@ -14,13 +14,29 @@ AC_CONFIG_AUX_DIR([build-aux])
|
|||||||
# want the default "-g -O2" that AC_PROG_CC sets automatically.
|
# want the default "-g -O2" that AC_PROG_CC sets automatically.
|
||||||
: ${CFLAGS=""}
|
: ${CFLAGS=""}
|
||||||
|
|
||||||
# For reproducible builds, gate out from the build anything that might
|
# Distro build feature subset (Debian, Ubuntu, etc.)
|
||||||
|
AC_ARG_ENABLE([distro],
|
||||||
|
[AS_HELP_STRING([--enable-distro],[Enable wolfSSL distro build (default: disabled)])],
|
||||||
|
[ ENABLED_DISTRO=$enableval ],
|
||||||
|
[ ENABLED_DISTRO=no ]
|
||||||
|
)
|
||||||
|
if test "$ENABLED_DISTRO" = "yes"
|
||||||
|
then
|
||||||
|
enable_shared=yes
|
||||||
|
enable_static=yes
|
||||||
|
enable_all=yes
|
||||||
|
REPRODUCIBLE_BUILD_DEFAULT=yes
|
||||||
|
else
|
||||||
|
REPRODUCIBLE_BUILD_DEFAULT=no
|
||||||
|
fi
|
||||||
|
|
||||||
|
# For reproducible build, gate out from the build anything that might
|
||||||
# introduce semantically frivolous jitter, maximizing chance of
|
# introduce semantically frivolous jitter, maximizing chance of
|
||||||
# identical object files.
|
# identical object files.
|
||||||
AC_ARG_ENABLE([reproducible-build],
|
AC_ARG_ENABLE([reproducible-build],
|
||||||
[AS_HELP_STRING([--enable-reproducible-builds],[Enable maximally reproducible build (default: disabled)])],
|
[AS_HELP_STRING([--enable-reproducible-build],[Enable maximally reproducible build (default: disabled)])],
|
||||||
[ ENABLED_REPRODUCIBLE_BUILD=$enableval ],
|
[ ENABLED_REPRODUCIBLE_BUILD=$enableval ],
|
||||||
[ ENABLED_REPRODUCIBLE_BUILD=no ]
|
[ ENABLED_REPRODUCIBLE_BUILD=$REPRODUCIBLE_BUILD_DEFAULT ]
|
||||||
)
|
)
|
||||||
|
|
||||||
# Test ar for the "U" or "D" options. Should be checked before the libtool macros.
|
# Test ar for the "U" or "D" options. Should be checked before the libtool macros.
|
||||||
@ -203,20 +219,6 @@ v1) if ! test -s ctaocrypt/src/fips.c; then
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
# Distro build feature subset (Debian, Ubuntu, etc.)
|
|
||||||
AC_ARG_ENABLE([distro],
|
|
||||||
[AS_HELP_STRING([--enable-distro],[Enable wolfSSL distro build (default: disabled)])],
|
|
||||||
[ ENABLED_DISTRO=$enableval ],
|
|
||||||
[ ENABLED_DISTRO=no ]
|
|
||||||
)
|
|
||||||
if test "$ENABLED_DISTRO" = "yes"
|
|
||||||
then
|
|
||||||
enable_shared=yes
|
|
||||||
enable_static=yes
|
|
||||||
enable_all=yes
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
# Linux Kernel Module
|
# Linux Kernel Module
|
||||||
AC_ARG_ENABLE([linuxkm],
|
AC_ARG_ENABLE([linuxkm],
|
||||||
[AS_HELP_STRING([--enable-linuxkm],[Enable Linux Kernel Module (default: disabled)])],
|
[AS_HELP_STRING([--enable-linuxkm],[Enable Linux Kernel Module (default: disabled)])],
|
||||||
|
Reference in New Issue
Block a user