File: enable_hardening.patch

package info (click to toggle)
beast-mcmc 1.10.4%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 43,964 kB
  • sloc: java: 335,096; xml: 71,681; ansic: 3,363; fortran: 2,323; sh: 297; python: 106; makefile: 80; cpp: 25
file content (21 lines) | stat: -rw-r--r-- 705 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Enable propagation of hardening flags
Author: Andreas Tille <tille@debian.org>
Date: Tue, 05 Jun 2012 14:38:11 +0200

--- a/native/Makefile.linux
+++ b/native/Makefile.linux
@@ -1,11 +1,11 @@
 CC=gcc
-CFLAGS=-O2 -funroll-loops
+CFLAGS += -O2 -funroll-loops 
 INCLUDES=-I${JAVA_HOME}/include/ -I${JAVA_HOME}/include/linux
 
 OBJS = NucleotideLikelihoodCore.o
 
 .c.o:
-	${CC} ${CFLAGS} ${INCLUDES} -c $*.c
+	${CC} $(CPPFLAGS) ${CFLAGS} $(LDFLAGS) ${INCLUDES} -c $*.c
 
 libNucleotideLikelihoodCore.so: ${OBJS}
-	${CC} ${CFLAGS} ${INCLUDES} -shared -o libNucleotideLikelihoodCore.so ${OBJS}
+	${CC} $(CPPFLAGS) ${CFLAGS} $(LDFLAGS) ${INCLUDES} -shared -o libNucleotideLikelihoodCore.so ${OBJS}