summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Ribas <jonathan.ribas@fraudbuster.mobi>2019-06-07 17:19:00 +0200
committerJonathan Ribas <jonathan.ribas@fraudbuster.mobi>2019-06-07 17:19:00 +0200
commitf4c3dfccb5227038a37102fe4f9fdd2c4ed80601 (patch)
treeea0c172630826a031121ab8085be73373f9cb7a0
parentfe8ef19da4fd1b86390b7be10cc66d2497ce3212 (diff)
downloaddpdk-burst-replay-f4c3dfccb5227038a37102fe4f9fdd2c4ed80601.zip
dpdk-burst-replay-f4c3dfccb5227038a37102fe4f9fdd2c4ed80601.tar.gz
dpdk-burst-replay-f4c3dfccb5227038a37102fe4f9fdd2c4ed80601.tar.xz
Fix configure.ac to let user specify custom CFLAGS/LDFLAGS.
-rw-r--r--configure.ac6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 0da3bc4..99e0761 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12,14 +12,16 @@ AM_INIT_AUTOMAKE([foreign])
AC_PROG_CC
AM_PROG_CC_C_O
+CFLAGS := ""
+
# DEBUG
AC_ARG_ENABLE(debug,
AS_HELP_STRING([--enable-debug], [turns on debug compiler, default:no]))
if test x$enable_debug = xyes; then
AC_DEFINE([DEBUG], [1], [debug enabled])
- CFLAGS="-ggdb -W -Wall -DDEBUG -O0"
+ CFLAGS+=" -ggdb -W -Wall -DDEBUG -O0"
else
- CFLAGS="-W -Wall -DNDEBUG -O2"
+ CFLAGS+=" -W -Wall -DNDEBUG -O2"
fi
AC_CONFIG_FILES([Makefile