diff options
-rw-r--r-- | debian/changelog | 3 | ||||
-rwxr-xr-x | debian/rules | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index 6313ba1e..1db8aae1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -27,6 +27,9 @@ pam (1.1.0-1) UNRELEASED; urgency=low * Updated debconf translations: - French, thanks to Jean-Baka Domelevo Entfellner <domelevo@gmail.com> (closes: #521266) + * Build with LDFLAGS=-Wl,-z,defs to guard against the possibility of + any undefined symbols (due to typos or otherwise) at build time. + Closes: #10231. -- Steve Langasek <vorlon@debian.org> Mon, 24 Aug 2009 01:23:18 -0700 diff --git a/debian/rules b/debian/rules index 389e2fb9..6a4b1268 100755 --- a/debian/rules +++ b/debian/rules @@ -5,6 +5,7 @@ # architecture-dependant package, as well as an architecture-independant # package. +LDFLAGS := -Wl,-z,defs CFLAGS := -g -D_GNU_SOURCE -D_REENTRANT -fPIC ifeq (,$(findstring noopt, ${DEB_BUILD_OPTIONS})) @@ -38,7 +39,7 @@ build-stamp: dh_testdir # Compile everything else - $(MAKE) -C $(BUILD_TREE) CFLAGS="$(CFLAGS)" + $(MAKE) -C $(BUILD_TREE) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" pod2man --section 8 --release="Debian GNU/Linux" $(dl)/pam_getenv >$(dl)/pam_getenv.8 |