Package: ldap2zone
Version: 0.2-3.1
Severity: important
Tags: patch
User: debian-...@lists.debian.org
Usertags: debian-edu

Here is a patch to enable hardening (and a clean target, to enable
rebuilds).

--- ldap2zone-0.2.orig/Makefile
+++ ldap2zone-0.2/Makefile
@@ -1,4 +1,14 @@
 all: ldap2zone
 
+CFLAGS = -W -Wall -g
+LIBS = -lldap -llber
+LDFLAGS =
+
+CFLAGS += `dpkg-buildflags --get CFLAGS`
+CFLAGS += `dpkg-buildflags --get CPPFLAGS`
+LDFLAGS += `dpkg-buildflags --get LDFLAGS`
+
 ldap2zone: ldap2zone.c
-           gcc -Wall ldap2zone.c -o ldap2zone -lldap -llber
+           gcc $(CFLAGS) ldap2zone.c -o ldap2zone $(LDFLAGS) $(LIBS)
+clean:
+       rm ldap2zone

-- 
Happy hacking
Petter Reinholdtsen


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to