Skip to content

Commit

Permalink
Remove -O2 from default CFLAGS because this would override the -O3 fl…
Browse files Browse the repository at this point in the history
…ag (see AC_PROG_CC in the Autoconf manual)
  • Loading branch information
jonasnick committed Jan 5, 2020
1 parent ecba813 commit 83fb1bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 83fb1bc

Please sign in to comment.