1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
Description: Use hardening flags
Author: Anton Gladky <gladk@debian.org>
Last-Update: 2016-09-28
Index: openfoam/wmake/rules/linux64Gcc/c
===================================================================
--- openfoam.orig/wmake/rules/linux64Gcc/c
+++ openfoam/wmake/rules/linux64Gcc/c
@@ -1,8 +1,8 @@
SUFFIXES += .c
-cWARN = -Wall
+cWARN = -Wall $(shell dpkg-buildflags --get CFLAGS)
-cc = gcc -m64
+cc = gcc
include $(DEFAULT_RULES)/c$(WM_COMPILE_OPTION)
Index: openfoam/wmake/rules/linux64Gcc/c++
===================================================================
--- openfoam.orig/wmake/rules/linux64Gcc/c++
+++ openfoam/wmake/rules/linux64Gcc/c++
@@ -1,11 +1,11 @@
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 $(shell dpkg-buildflags --get CXXFLAGS)
# Suppress some warnings for flex++ and CGAL
-c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds
+c++LESSWARN =
-CC = g++ -std=c++0x -m64
+CC = g++ -std=c++0x
include $(DEFAULT_RULES)/c++$(WM_COMPILE_OPTION)
|