[Pkg-cyrus-sasl2-commits] [cyrus-sasl2] 33/44: Add default Debian hardening to sample server and client
Ondřej Surý
ondrej at debian.org
Sat Dec 31 13:07:14 UTC 2016
This is an automated email from the git hooks/post-receive script.
ondrej pushed a commit to branch master
in repository cyrus-sasl2.
commit f5a717b4c9018b67a76ddbf67c4c3b95b24c413d
Author: Ondřej Surý <ondrej at sury.org>
Date: Tue Oct 25 17:51:59 2016 +0200
Add default Debian hardening to sample server and client
---
debian/sample/Makefile | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/debian/sample/Makefile b/debian/sample/Makefile
index 48f3f38..5e098ce 100644
--- a/debian/sample/Makefile
+++ b/debian/sample/Makefile
@@ -1,5 +1,9 @@
#!/usr/bin/make -f
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/default.mk
+
INCDIR1=$(T)/../include
INCDIR2=$(T)/include
LIBDIR=$(T)/lib/.libs
@@ -7,7 +11,7 @@ LIBDIR=$(T)/lib/.libs
all: sample-server sample-client
sample-server: sample-server.c
- gcc -g -o sample-server sample-server.c -I. -I$(T) -I$(INCDIR1) -I$(INCDIR2) -L$(LIBDIR) -lsasl2
+ gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -g -o sample-server sample-server.c -I. -I$(T) -I$(INCDIR1) -I$(INCDIR2) -L$(LIBDIR) -lsasl2
sample-client: sample-client.c
- gcc -g -o sample-client sample-client.c -I. -I$(T) -I$(INCDIR1) -I$(INCDIR2) -L$(LIBDIR) -lsasl2
+ gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -g -o sample-client sample-client.c -I. -I$(T) -I$(INCDIR1) -I$(INCDIR2) -L$(LIBDIR) -lsasl2
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-cyrus-sasl2/cyrus-sasl2.git
More information about the Pkg-cyrus-sasl2-commits
mailing list