build: Respect CFLAGS and LDFLAGS passed to make
authorThomas Graf <tgraf@noironetworks.com>
Thu, 11 Sep 2014 19:34:21 +0000 (21:34 +0200)
committerBen Pfaff <blp@nicira.com>
Thu, 11 Sep 2014 19:37:38 +0000 (12:37 -0700)
commit95626395a3dbd91b69af80207d79b3ecab7643c9
tree4ddd2433f43dfdbcda14b935d15f2080f77558f6
parent648cef14dd6775b38fb7b002d4d187a936bc8b6a
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>
Makefile.am
acinclude.m4
configure.ac
m4/openvswitch.m4