Merge pull request #9972 from NixOS/allow-unoptimized-builds

Don't hardcode the `-O2` compiler flag
This commit is contained in:
Eelco Dolstra 2024-02-09 13:25:51 +01:00 committed by GitHub
commit 57ebcadb2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -47,6 +47,10 @@ AC_DEFINE_UNQUOTED(SYSTEM, ["$system"], [platform identifier ('cpu-os')])
# State should be stored in /nix/var, unless the user overrides it explicitly. # State should be stored in /nix/var, unless the user overrides it explicitly.
test "$localstatedir" = '${prefix}/var' && localstatedir=/nix/var test "$localstatedir" = '${prefix}/var' && localstatedir=/nix/var
# Assign a default value to C{,XX}FLAGS as the default configure script sets them
# to -O2 otherwise, which we don't want to have hardcoded
CFLAGS=${CFLAGS-""}
CXXFLAGS=${CXXFLAGS-""}
AC_PROG_CC AC_PROG_CC
AC_PROG_CXX AC_PROG_CXX