File: hardening.patch

package info (click to toggle)
poa 2.0+20060928-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 480 kB
  • sloc: ansic: 4,644; xml: 276; makefile: 91; perl: 35; sh: 16
file content (25 lines) | stat: -rw-r--r-- 754 bytes parent folder | download | duplicates (2)
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
Description: propagate hardening options
Author: Andreas Tille <tille@debian.org>
Last-Update: Thu, 14 Sep 2017 09:50:18 +0200


--- a/Makefile
+++ b/Makefile
@@ -28,7 +28,7 @@ LIBOBJECTS= \
 
 CC = gcc
 #CFLAGS= -g -ansi-strict -W -Wall -DUSE_WEIGHTED_LINKS -DUSE_PROJECT_HEADER -I.
-CFLAGS= -g -DUSE_WEIGHTED_LINKS -DUSE_PROJECT_HEADER -I.
+CFLAGS+= -g -DUSE_WEIGHTED_LINKS -DUSE_PROJECT_HEADER -I.
 # -I$(HOME)/lib/include
 # -DREPORT_MAX_ALLOC
 
@@ -44,7 +44,7 @@ liblpo.a: $(LIBOBJECTS)
 
 # NB: LIBRARY MUST FOLLOW OBJECTS OR LINK FAILS WITH UNRESOLVED REFERENCES!!
 poa: $(OBJECTS) liblpo.a
-	$(CC) -o $@ $(OBJECTS) -lm liblpo.a
+	$(CC) -o $@ $(OBJECTS) -lm liblpo.a $(LDFLAGS)
 
 what:
 	@echo poa: partial-order based sequence alignment program