From: Neale Ranns Date: Mon, 8 Jan 2018 12:07:38 +0000 (-0800) Subject: VOM: fix cflags X-Git-Tag: v18.04-rc1~516 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F88%2F9988%2F3;p=vpp.git VOM: fix cflags override the default CXXFLAGS (which provides a -O2) with the system set CFLAGS (providing -O0/-O2 for debug/release builds) Change-Id: Ic84e51baafdc22d37139303566d705d759e36721 Signed-off-by: Neale Ranns --- diff --git a/src/vpp-api/vom/Makefile.am b/src/vpp-api/vom/Makefile.am index b1fbfeedb35..0d60faa3252 100644 --- a/src/vpp-api/vom/Makefile.am +++ b/src/vpp-api/vom/Makefile.am @@ -15,7 +15,8 @@ AUTOMAKE_OPTIONS = foreign ACLOCAL_AMFLAGS = -I m4 AM_LIBTOOLFLAGS = --quiet -AM_CXXFLAGS = -Wall -std=gnu++11 -I${top_srcdir} -I${top_builddir}/vpp-api/vapi/ -I$(top_srcdir)/vpp-api/ -I${libdir}/../include -O0 +CXXFLAGS = ${CFLAGS} +AM_CXXFLAGS = ${CXXFLAGS} -Wall -Werror -std=gnu++11 -I${top_srcdir} -I${top_builddir}/vpp-api/vapi/ -I$(top_srcdir)/vpp-api/ -I${libdir}/../include AM_LDFLAGS = -shared -no-undefined bin_PROGRAMS =