From f9abf2a7dfd543f433eed20636cb76d6d7327d7e Mon Sep 17 00:00:00 2001 From: Carsten Hartenfels Date: Sat, 23 Nov 2019 18:03:34 -0500 Subject: [PATCH] Don't add default autoconf flags to build By default, it adds something like `-O2 -g` to the cflags. That conflicts with the flags in Makefile.am, which specifies -O3. This commit removes the default flags so we only get what we actually specify. --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 45dc219..473a396 100644 --- a/configure.ac +++ b/configure.ac @@ -10,6 +10,9 @@ AC_PREREQ([2.69]) AC_INIT([cglm], [0.6.1], [info@recp.me]) AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects serial-tests]) +# Don't use the default cflags (-O2 -g), we set ours manually in Makefile.am. +: ${CFLAGS=""} + AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_SRCDIR([src/]) AC_CONFIG_HEADERS([config.h])