diff options
author | Thomas Graf <tgraf@noironetworks.com> | 2014-09-11 21:34:21 +0200 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2014-09-11 12:37:38 -0700 |
commit | 95626395a3dbd91b69af80207d79b3ecab7643c9 (patch) | |
tree | 4ddd2433f43dfdbcda14b935d15f2080f77558f6 /m4 | |
parent | 648cef14dd6775b38fb7b002d4d187a936bc8b6a (diff) | |
download | openvswitch-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.m4 | 4 |
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. |