[med-svn] [Git][med-team/simrisc][debian/experimental] 2 commits: Pass hardening compiler flags to gcc to appease blhc.

Tony Mancill gitlab at salsa.debian.org
Tue Mar 2 05:21:05 GMT 2021



Tony Mancill pushed to branch debian/experimental at Debian Med / simrisc


Commits:
cfe89098 by tony mancill at 2021-03-01T21:14:49-08:00
Pass hardening compiler flags to gcc to appease blhc.

- - - - -
52f4c22d by tony mancill at 2021-03-01T21:20:38-08:00
interim changelog

- - - - -


4 changed files:

- debian/changelog
- + debian/patches/cppflags.patch
- debian/patches/series
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+simrisc (14.03.00-1~exp1) UNRELEASED; urgency=medium
+
+  * Pass hardening compiler flags to gcc to appease blhc.
+
+ -- tony mancill <tmancill at debian.org>  Sun, 28 Feb 2021 19:46:08 -0800
+
 simrisc (14.03.00-1~exp0) experimental; urgency=medium
 
   [ Frank B. Brokken ]


=====================================
debian/patches/cppflags.patch
=====================================
@@ -0,0 +1,11 @@
+--- a/icmake/special
++++ b/icmake/special
+@@ -3,7 +3,7 @@
+     if (! exists("release.yo") || "VERSION" newer "release.yo") 
+     {
+         system("touch version.cc");
+-        run("gcc -E VERSION.h | grep -v '#' | sed 's/\\\"//g' > "
++        run("gcc -E -D_FORTIFY_SOURCE=2 VERSION.h | grep -v '#' | sed 's/\\\"//g' > "
+                                                             "release.yo");
+     }
+ }


=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+cppflags.patch


=====================================
debian/rules
=====================================
@@ -22,6 +22,7 @@ export DEB_BUILD_HARDENING = 1
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
 export CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS)
+export CPPFLAGS += -D_FORTIFY_SOURCE=2
 export LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS) -Wl,-z,now
 export CXXFLAGS = $(shell dpkg-buildflags --get CXXFLAGS)
 export CXXFLAGS += -Wall --std=c++2a -D_FORTIFY_SOURCE=2



View it on GitLab: https://salsa.debian.org/med-team/simrisc/-/compare/cc69788130e4de716a30cbed1fd2cd070c0d7bd6...52f4c22da89ffd660a26452c2d29ed2fc9ac35db

-- 
View it on GitLab: https://salsa.debian.org/med-team/simrisc/-/compare/cc69788130e4de716a30cbed1fd2cd070c0d7bd6...52f4c22da89ffd660a26452c2d29ed2fc9ac35db
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20210302/e345aa2e/attachment-0001.htm>


More information about the debian-med-commit mailing list