summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Nilsson <troglobit@gmail.com>2019-10-06 16:41:37 +0200
committerJoachim Nilsson <troglobit@gmail.com>2019-10-06 16:41:37 +0200
commite169d61c7cfbc045fd7f58a0cead965b35bed800 (patch)
tree11569b149166fe1084111e26e95a8292e84a2ed4
parent8f1336b26fb05f8b0b997ceb022775549a00bb8e (diff)
downloadlibnet-e169d61c7cfbc045fd7f58a0cead965b35bed800.tar.gz
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 <troglobit@gmail.com>
-rw-r--r--configure.ac4
1 files changed, 0 insertions, 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