[bibutils] 09/10: debian/rules: pass hardening LDFLAGS

David Bremner bremner at debian.org
Sun Aug 11 12:36:38 UTC 2013


This is an automated email from the git hooks/post-receive script.

bremner pushed a commit to annotated tag debian/5.0-1
in repository bibutils.

commit 1a72ea158a5cff9a6a103193dba52d7f30374097
Author: David Bremner <bremner at debian.org>
Date:   Sat Aug 10 21:39:16 2013 +0200

    debian/rules: pass hardening LDFLAGS
    
    We create LDFLAGSIN as an analog of CFLAGSIN
---
 bin/Makefile.dynamic |    2 +-
 debian/rules         |    3 +++
 lib/Makefile.dynamic |    2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/bin/Makefile.dynamic b/bin/Makefile.dynamic
index c38fdcf..655dd00 100644
--- a/bin/Makefile.dynamic
+++ b/bin/Makefile.dynamic
@@ -5,7 +5,7 @@
 #
 
 CFLAGS     = -I ../lib $(CFLAGSIN)
-LDFLAGS    = -L ../lib
+LDFLAGS    = -L ../lib $(LDFLAGSIN)
 LDLIBS     = -lbibutils
 
 TOMODS     = bibprog.o tomods.o args.o
diff --git a/debian/rules b/debian/rules
index c195f1c..34e43fa 100755
--- a/debian/rules
+++ b/debian/rules
@@ -23,6 +23,9 @@ LIBINSTALLDIR=${DESTDIR}/usr/lib
 CFLAGSIN=$(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
 export CFLAGSIN
 
+LDFLAGSIN=$(shell dpkg-buildflags --get LDFLAGS)
+export LDFLAGSIN
+
 %:
 	dh $@
 
diff --git a/lib/Makefile.dynamic b/lib/Makefile.dynamic
index f1b61d9..e94e5b2 100644
--- a/lib/Makefile.dynamic
+++ b/lib/Makefile.dynamic
@@ -68,7 +68,7 @@ all: $(LIBTARGET)
 	$(CC) $(CFLAGS) -c -o $@ $<
 
 libbibutils.so: $(BIBCORE_OBJS) $(BIBUTILS_OBJS)
-	$(CC) -shared -Wl,-soname,$(SONAME) -o $(SOFULL) $^
+	$(CC) -shared -Wl,-soname,$(SONAME) $(LDFLAGSIN) -o $(SOFULL) $^
 	ln -sf $(SOFULL) $(SONAME)
 	ln -sf $(SOFULL) libbibutils.so
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/bibutils.git



More information about the debian-science-commits mailing list