From e169d61c7cfbc045fd7f58a0cead965b35bed800 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sun, 6 Oct 2019 16:41:37 +0200 Subject: configure: Allow default CFLAGS="-O2 -g", use `make install-strip` We should not make assumptions about what are preferred CFLAGS. Let autoconf handle all that, unless the user has provided CFLAGS on the command line. Usually, when building a distribution package, you want debug symbols for a libnet-dbg (unstripped) and a libnet1 (stripped) package. Also, the user can always run `make install-strip` to get the stripped lib installed. Signed-off-by: Joachim Nilsson --- configure.ac | 4 ---- 1 file changed, 4 deletions(-) diff --git a/configure.ac b/configure.ac index 423f96a..5793d47 100644 --- a/configure.ac +++ b/configure.ac @@ -36,10 +36,6 @@ AC_CONFIG_FILES([Makefile \ win32/Makefile]) AC_CONFIG_FILES([doc/fixmanpages], [chmod a+x doc/fixmanpages]) -# the default compiler flags are "-O2 -g" if the user does not set anything. -# IMO O2 optimizations are fine, but debugging should be up to the user. -: ${CFLAGS="-O2"} - # Check for the usual programs AC_PROG_CC AC_PROG_INSTALL -- cgit v1.2.1