[openfoam] 02/03: Use hardening.

Anton Gladky gladk at moszumanska.debian.org
Wed Sep 28 19:27:07 UTC 2016


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

gladk pushed a commit to branch master
in repository openfoam.

commit 0843d6a0e843f2bcda2ff8f3c5a8ac88af027ac6
Author: Anton Gladky <gladk at debian.org>
Date:   Wed Sep 28 20:49:30 2016 +0200

    Use hardening.
---
 debian/patches/30_hardening.patch | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/debian/patches/30_hardening.patch b/debian/patches/30_hardening.patch
new file mode 100644
index 0000000..a039adf
--- /dev/null
+++ b/debian/patches/30_hardening.patch
@@ -0,0 +1,25 @@
+Description: Use hardening flags
+ TODO: One need to use dpkg-buildflags
+Author: Anton Gladky <gladk at debian.org>
+Last-Update: 2016-09-28
+
+--- openfoam-4.0+dfsg1.orig/wmake/rules/linux64Gcc/c
++++ openfoam-4.0+dfsg1/wmake/rules/linux64Gcc/c
+@@ -1,6 +1,6 @@
+ SUFFIXES += .c
+ 
+-cWARN        = -Wall
++cWARN        = -Wall -fstack-protector-strong -Wformat -Werror=format-security
+ 
+ cc          = gcc -m64
+ 
+--- openfoam-4.0+dfsg1.orig/wmake/rules/linux64Gcc/c++
++++ openfoam-4.0+dfsg1/wmake/rules/linux64Gcc/c++
+@@ -1,6 +1,6 @@
+ SUFFIXES += .C
+ 
+-c++WARN     = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof
++c++WARN     = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wformat -Werror=format-security -fstack-protector-strong
+ 
+ # Suppress some warnings for flex++ and CGAL
+ c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds

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



More information about the debian-science-commits mailing list