[openmeca] 03/03: add hardening option (linthian warnings)

Damien André damien-andre-guest at moszumanska.debian.org
Tue Apr 25 11:31:12 UTC 2017


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

damien-andre-guest pushed a commit to branch patch-queue/master
in repository openmeca.

commit 5b27a2a4a74d860d6639757654e5ead2dec9da4f
Author: Damien André <damien.andre at unilim.fr>
Date:   Tue Apr 25 09:29:58 2017 +0200

    add hardening option (linthian warnings)
---
 SRC/ChronoEngine/ChronoEngine.pro   | 7 +++++++
 SRC/OpenMeca/OpenMeca.pro           | 5 +++++
 SRC/Serialization/Serialization.pro | 8 ++++++++
 3 files changed, 20 insertions(+)

diff --git a/SRC/ChronoEngine/ChronoEngine.pro b/SRC/ChronoEngine/ChronoEngine.pro
index c4a5636..2acb2f4 100644
--- a/SRC/ChronoEngine/ChronoEngine.pro
+++ b/SRC/ChronoEngine/ChronoEngine.pro
@@ -17,6 +17,13 @@
 ## You should have received a copy of the GNU General Public License
 ## along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+# Compilation option for debian hardening
+QMAKE_CPPFLAGS *= $(shell dpkg-buildflags --get CPPFLAGS)
+QMAKE_CFLAGS   *= $(shell dpkg-buildflags --get CFLAGS)
+QMAKE_CXXFLAGS *= $(shell dpkg-buildflags --get CXXFLAGS)
+QMAKE_LFLAGS   *= $(shell dpkg-buildflags --get LDFLAGS)
+
+
 CONFIG           += qt     
 CONFIG           += warn_on
 CONFIG           += no_keywords
diff --git a/SRC/OpenMeca/OpenMeca.pro b/SRC/OpenMeca/OpenMeca.pro
index 12a0c90..03b093f 100644
--- a/SRC/OpenMeca/OpenMeca.pro
+++ b/SRC/OpenMeca/OpenMeca.pro
@@ -17,6 +17,11 @@
 ## You should have received a copy of the GNU General Public License
 ## along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+# Compilation option for debian hardening
+QMAKE_CPPFLAGS *= $(shell dpkg-buildflags --get CPPFLAGS)
+QMAKE_CFLAGS   *= $(shell dpkg-buildflags --get CFLAGS)
+QMAKE_CXXFLAGS *= $(shell dpkg-buildflags --get CXXFLAGS)
+QMAKE_LFLAGS   *= $(shell dpkg-buildflags --get LDFLAGS)
 
 
 TEMPLATE  = app
diff --git a/SRC/Serialization/Serialization.pro b/SRC/Serialization/Serialization.pro
index 01cf1d2..ec0623b 100644
--- a/SRC/Serialization/Serialization.pro
+++ b/SRC/Serialization/Serialization.pro
@@ -1,3 +1,11 @@
+
+# Compilation option for debian hardening
+QMAKE_CPPFLAGS *= $(shell dpkg-buildflags --get CPPFLAGS)
+QMAKE_CFLAGS   *= $(shell dpkg-buildflags --get CFLAGS)
+QMAKE_CXXFLAGS *= $(shell dpkg-buildflags --get CXXFLAGS)
+QMAKE_LFLAGS   *= $(shell dpkg-buildflags --get LDFLAGS)
+
+
 ######################################################################
 # qmake internal options
 ######################################################################

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



More information about the debian-science-commits mailing list