Skip to content

Commit 83fb1bc

Browse files
committed
Remove -O2 from default CFLAGS because this would override the -O3 flag (see AC_PROG_CC in the Autoconf manual)
1 parent ecba813 commit 83fb1bc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

configure.ac

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ AH_TOP([#ifndef LIBSECP256K1_CONFIG_H])
77
AH_TOP([#define LIBSECP256K1_CONFIG_H])
88
AH_BOTTOM([#endif /*LIBSECP256K1_CONFIG_H*/])
99
AM_INIT_AUTOMAKE([foreign subdir-objects])
10+
11+
# Set -g (but not -O2 because this would override -O3 which we're adding later)
12+
# if CFLAGS are not already set (see PROG_CC in the Autoconf manual)
13+
: ${CFLAGS="-g"}
1014
LT_INIT
1115

1216
dnl make the compilation flags quiet unless V=1 is used

0 commit comments

Comments
 (0)