summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorThomas Graf <tgraf@noironetworks.com>2014-09-11 21:34:21 +0200
committerBen Pfaff <blp@nicira.com>2014-09-11 12:37:38 -0700
commit95626395a3dbd91b69af80207d79b3ecab7643c9 (patch)
tree4ddd2433f43dfdbcda14b935d15f2080f77558f6 /m4
parent648cef14dd6775b38fb7b002d4d187a936bc8b6a (diff)
downloadopenvswitch-95626395a3dbd91b69af80207d79b3ecab7643c9.tar.gz
build: Respect CFLAGS and LDFLAGS passed to make
configure cannot expect that the user will not pass additional CFLAGS and LDFLAGS at make time [0]. Use OVS_CFLAGS and OVS_LDFLAGS instead to collect compiler and linker flags and substitute in Makefile.am. This allows for: ./configure --with-dpdk=[...] make CFLAGS=-Wno-error=foo [0] http://www.gnu.org/software/automake/manual/html_node/Flag-Variables-Ordering.html Signed-off-by: Thomas Graf <tgraf@noironetworks.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'm4')
-rw-r--r--m4/openvswitch.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/openvswitch.m4 b/m4/openvswitch.m4
index d54483b2b..6e24f2569 100644
--- a/m4/openvswitch.m4
+++ b/m4/openvswitch.m4
@@ -30,8 +30,8 @@ AC_DEFUN([OVS_CHECK_COVERAGE],
esac],
[coverage=false])
if $coverage; then
- CFLAGS="$CFLAGS -O0 --coverage"
- LDFLAGS="$LDFLAGS --coverage"
+ OVS_CFLAGS="$OVS_CFLAGS -O0 --coverage"
+ OVS_LDFLAGS="$OVS_LDFLAGS --coverage"
fi])
dnl Checks for --enable-ndebug and defines NDEBUG if it is specified.