File: hardening.patch

package info (click to toggle)
bitseq 0.7.5%2Bdfsg2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,928 kB
  • sloc: cpp: 7,043; python: 562; makefile: 150; sh: 72
file content (20 lines) | stat: -rw-r--r-- 670 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Author: Andreas Tille <tille@debian.org>
Last-Update: 2025-06-02
Reviewed-By: Étienne Mollier <emollier@debian.org>
Description: Propagate hardening options

--- bitseq.orig/Makefile
+++ bitseq/Makefile
@@ -8,10 +8,10 @@
 # Use O1 for debuiggging so it's not totally slow.
 DBGFLAGS = -O1 -ggdb -U_FORTIFY_SOURCE
 COFLAGS = $(ARCH) -O2 -pipe
-CXXFLAGS = -DBS_VERSION=\"$(VERSION)\" -Wall $(COFLAGS)
+CXXFLAGS += $(CPPFLAGS) -DBS_VERSION=\"$(VERSION)\" -Wall $(COFLAGS)
 # -Wvla does not work with old gcc
 # -ffast-math segfaults with old gcc, don't use.
-LDFLAGS = -Wl,-gc-sections
+LDFLAGS += -Wl,-gc-sections
 BOOSTFLAGS = -I .
 OPENMP = -fopenmp -DSUPPORT_OPENMP