[kbibtex] 15/19: Use -Wl,as needed

Bastien ROUCARIES broucaries-guest at moszumanska.debian.org
Sun Jan 3 21:33:31 UTC 2016


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

broucaries-guest pushed a commit to branch debian/0.6+git7fdc0cd97c093f-1
in repository kbibtex.

commit 3a0cd2f1ab4cad8d39efbf56f242c5bcbeb1c17f
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Sat Jan 2 18:52:27 2016 +0100

    Use -Wl,as needed
---
 debian/rules | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/debian/rules b/debian/rules
index d91e378..c40574b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,13 +1,37 @@
 #!/usr/bin/make -f
 
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
 export QT_SELECT := 5
 
+export STATIC_DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+export DEB_HOST_GNU_TYPE  ?= $(STATIC_DEB_HOST_GNU_TYPE)
+export STATIC_DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+export DEB_HOST_MULTIARCH ?= $(STATIC_DEB_HOST_MULTIARCH)
+export STATIC_DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+export DEB_BUILD_GNU_TYPE ?= $(STATIC_DEB_BUILD_GNU_TYPE)
+
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 
 # one ring to rule them all ...
 %:
 	dh $@
 
+# pass as-needed and security flags
+override_dh_auto_configure:
+	dh_auto_configure -- -DCMAKE_C_FLAGS="$(CFLAGS)" -DCMAKE_CXX_FLAGS="$(CFLAGS)" \
+		-DCMAKE_SHARED_LINKER_FLAGS="$(LDFLAGS)" \
+		-DCMAKE_MODULE_LINKER_FLAGS="$(LDFLAGS)" \
+		-DCMAKE_EXE_LINKER_FLAGS="$(LDFLAGS)"
+
+override_dh_auto_install:
+	dh_auto_install
+	# remove .so symlink to private lib
+	-rm $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.so
+
 # link doc
 override_dh_installdocs-indep:
 	dh_installdocs --indep

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



More information about the debian-science-commits mailing list