[caffe] 05/05: rules: fix hardening flags

Zhou Mo cdluminate-guest at moszumanska.debian.org
Mon May 2 15:10:46 UTC 2016


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

cdluminate-guest pushed a commit to branch debian/experimental
in repository caffe.

commit 587eee9f54b5879b0baf7f3e1ef523771d2d8f9d
Author: Zhou Mo <cdluminate at gmail.com>
Date:   Mon May 2 15:10:23 2016 +0000

    rules: fix hardening flags
---
 debian/rules | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index e0d20aa..edb93c0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,8 +1,14 @@
 #!/usr/bin/make -f
 #export DH_VERBOSE = 1
+
+# Hardening Caffe according to https://wiki.debian.org/Hardening
+DPKG_EXPORT_BUILDFLAGS=1
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+include /usr/share/dpkg/buildflags.mk
+CFLAGS+=$(CPPFLAGS)
+CXXFLAGS+=$(CPPFLAGS)
 
 DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
 RULES         := debian/rules
@@ -27,7 +33,7 @@ endif
 ## * specifying compiler version to GCC-5 because of NVCC campatibility.
 ## * we build docs indeed, but we don't build ALL docs, so BUILD_docs is disabled.
 ## * python3 dependency not satisfied yet, can't build python3-caffe*.
-## * lock compiler at GCC-5 to prevent NVCC failure.
+## * lock compiler on GCC-5 to prevent NVCC failure.
 CMAKE_CONFIGURE_TEMPLATE = \
 	-DALLOW_LMDB_NOLOCK=OFF \
 	-DBLAS="Open" \

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



More information about the debian-science-commits mailing list