aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changelog6
-rwxr-xr-xrules13
2 files changed, 6 insertions, 13 deletions
diff --git a/changelog b/changelog
index 76c22ee8..0922d7bf 100644
--- a/changelog
+++ b/changelog
@@ -74,12 +74,14 @@ pam (0.99.7.1-2) UNRELEASED; urgency=low
- kill off references to unused variables
- make binary-arch also depend on the install target, and streamline the
rules
+ - fix up the clean target to not ignore errors; thanks to Roger Leigh
+ - drop the local module_check target in favor of using -Wl,-z,defs
+ in LDFLAGS to enforce correct linkage of all objects at build time
* Drop debian/local/unix_chkpwd.8 in favor of the upstream manpage.
* libpam-modules.files: /usr/sbin/pam_tally has moved to /sbin/pam_tally
for consistency.
- * Fix up the clean target to not ignore errors; thanks to Roger Leigh.
- -- Steve Langasek <vorlon@debian.org> Mon, 20 Aug 2007 00:35:35 -0700
+ -- Steve Langasek <vorlon@debian.org> Mon, 20 Aug 2007 01:02:17 -0700
pam (0.79-4) unstable; urgency=medium
diff --git a/rules b/rules
index 31f3e8de..3b4cc6ba 100755
--- a/rules
+++ b/rules
@@ -9,6 +9,7 @@ DH_COMPAT = 3
export DH_COMPAT
CFLAGS := -g -D_GNU_SOURCE -D_REENTRANT -fPIC
+LDFLAGS := -Wl,-z,defs
ifeq (,$(findstring noopt, ${DEB_BUILD_OPTIONS}))
CFLAGS += -O2
@@ -98,7 +99,7 @@ binary-indep: install
dh_md5sums -i
dh_builddeb -i
-binary-arch: install module_check
+binary-arch: install
dh_testdir -a
dh_testroot -a
@@ -128,15 +129,5 @@ binary-arch: install module_check
dh_md5sums -a
dh_builddeb -a
-module_check:
- for module in `ls build-tree/Linux-PAM-*/modules/pam_*/pam_*.so`; \
- do \
- test=`ldd $$module | grep libpam.so.0`; \
- if [ "x$$test" = "x" ]; then \
- echo $$module is not linked to libpam; \
- exit 1; \
- fi; \
- done
-
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary patch unpatch install configure