add hardening flags
@@ -57,6 +57,7 @@ endif
CC = gcc
# compiling flags here
CFLAGS = -g -std=c99 -I$(SRCDIR) -I$(LIBDIR) -Wall -Wextra
+CFLAGS +=$(shell dpkg-buildflags --get CFLAGS)
ifndef MAC_OS
CFLAGS += $(shell pkg-config --cflags libsecret-1)
endif
@@ -69,6 +70,7 @@ LFLAGS = -lsodium -largp
else
LFLAGS = -l:libsodium.a -lseccomp
endif
+LFLAGS +=$(shell dpkg-buildflags --get LDFLAGS)
ifdef HAS_CJSON
LFLAGS += -lcjson
endif
@@ -587,7 +589,7 @@ remove: cleanobj cleanapi cleanpackage cleantest distclean
.PHONY: deb
deb: create_obj_dir_structure VERSION
perl -0777 -pi -e 's/(\().*?(\))/`echo -n "("; echo -n $(VERSION); echo -n ")"`/e' debian/changelog
- debuild -b -uc -us
+ debuild -i -b -uc -us
@echo "Success: DEBs are in parent directory"
.PHONY: srctar
