Setting CFLAGS by hand before invoking dpkg-buildflags is ineffective, because dpkg-buildflags overrides it.
Reported-by: Andrey Korolyov <and...@xdel.ru> Signed-off-by: Ben Pfaff <b...@nicira.com> --- debian/rules | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/debian/rules b/debian/rules index 38ecd62..6d1ccec 100755 --- a/debian/rules +++ b/debian/rules @@ -22,13 +22,6 @@ PARALLEL = endif MAKEFLAGS += $(PARALLEL) -CFLAGS += -g -ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) -CFLAGS += -O0 -else -CFLAGS += -O2 -endif - # Old versions of dpkg-buildflags do not understand --export=configure. # When dpkg-buildflags does not understand an option, it prints its full # --help output on stdout, so we have to avoid that here. @@ -45,7 +38,7 @@ configure-stamp: cd _debian && ( \ test -e Makefile || \ ../configure --prefix=/usr --localstatedir=/var --enable-ssl \ - --sysconfdir=/etc --host=$(DEB_HOST_GNU_TYPE) CFLAGS="$(CFLAGS)" \ + --sysconfdir=/etc --host=$(DEB_HOST_GNU_TYPE) \ $(buildflags) $(DATAPATH_CONFIGURE_OPTS)) touch configure-stamp -- 2.1.3 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev