debian: Remove obsolete manual setting of CFLAGS and warnings from rules.
authorBen Pfaff <blp@nicira.com>
Sun, 7 Jun 2015 16:48:15 +0000 (09:48 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 10 Jun 2015 16:19:39 +0000 (09:19 -0700)
Setting CFLAGS by hand before invoking dpkg-buildflags is ineffective,
because dpkg-buildflags overrides it.

Reported-by: Andrey Korolyov <andrey@xdel.ru>
Signed-off-by: Ben Pfaff <blp@nicira.com>
debian/rules

index 38ecd62..6d1ccec 100755 (executable)
@@ -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