From c88e2b8cca13767afb7b3653ddd2ea342115031a Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Tue, 9 Dec 2014 01:30:43 +0100 Subject: [PATCH] Compile with -O3 by default --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 60a5405..c65d615 100644 --- a/configure.ac +++ b/configure.ac @@ -18,6 +18,10 @@ AC_PATH_TOOL(AR, ar) AC_PATH_TOOL(RANLIB, ranlib) AC_PATH_TOOL(STRIP, strip) +if test -z $CFLAGS; then + CFLAGS="-O3 -g" +fi + AC_PROG_CC_C99 if test x"$ac_cv_prog_cc_c99" == x"no"; then AC_MSG_ERROR([c99 compiler support required])