d/rules: don't touch opmimisations cflags directly

This commit is contained in:
Jan Wagner 2019-01-24 10:37:10 +01:00
parent 187c4cbd7d
commit 0f96e5a8ef

6
debian/rules vendored
View file

@ -14,12 +14,6 @@ LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
CFLAGS += -D_BSD_SOURCE -Wall -g
LDLIBS += -lpcap -lpthread -lm
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif
build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp