]> Git Repo - secp256k1.git/commitdiff
Remove -O2 from default CFLAGS because this would override the -O3 flag (see AC_PROG_...
authorJonas Nick <[email protected]>
Tue, 17 Dec 2019 12:41:44 +0000 (12:41 +0000)
committerJonas Nick <[email protected]>
Sun, 5 Jan 2020 15:16:33 +0000 (15:16 +0000)
configure.ac

index 424f6efb20f6b0d25b1552a6a9c293a6c8dc372a..a68ef9586951b650833e32b3a5d2eb84dc970c31 100644 (file)
@@ -7,6 +7,10 @@ AH_TOP([#ifndef LIBSECP256K1_CONFIG_H])
 AH_TOP([#define LIBSECP256K1_CONFIG_H])
 AH_BOTTOM([#endif /*LIBSECP256K1_CONFIG_H*/])
 AM_INIT_AUTOMAKE([foreign subdir-objects])
+
+# Set -g (but not -O2 because this would override -O3 which we're adding later)
+# if CFLAGS are not already set (see PROG_CC in the Autoconf manual)
+: ${CFLAGS="-g"}
 LT_INIT
 
 dnl make the compilation flags quiet unless V=1 is used
This page took 0.026763 seconds and 4 git commands to generate.