File: 0001-hardening.patch

package info (click to toggle)
snaphu 2.0.7-2
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid
  • size: 1,168 kB
  • sloc: ansic: 14,350; makefile: 53
file content (37 lines) | stat: -rw-r--r-- 1,089 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
26
27
28
29
30
31
32
33
34
35
36
37
From: Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>
Date: Mon, 7 Aug 2017 21:34:46 +0000
Subject: hardening

CFLAGS setup has been modified to extent the settings of the external
environment.
CPPFLAGS and LDFLAGS are now used during the build phase.
---
 src/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Makefile b/src/Makefile
index e3d7a7a..e0cb450 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -13,10 +13,10 @@
 # If you specify -D NO_CS2, the program will be compiled without the
 # CS2 MCF solver module.
 
-CC		=	cc
+#CC		=	cc
 OPTIMFLAGS	=	-O3
 DEBUGFLAGS	=	-ggdb
-CFLAGS		=	-arch x86_64 $(OPTIMFLAGS) -Wall # -arch arm64 -Wuninitialized -m64 -D NO_CS2
+CFLAGS		+=	$(OPTIMFLAGS) -Wall # -arch x86_64 -arch arm64 -Wuninitialized -m64 -D NO_CS2
 LIBS		=	-lm 
 BINDIR		=	../bin
 INSTALLDIR	=	/usr/local/bin
@@ -35,7 +35,7 @@ OBJS		=	snaphu_tile.o \
 all:		$(SNAPHU)
 
 $(SNAPHU):	snaphu.c $(OBJS) snaphu.h Makefile 
-		$(CC) $(CFLAGS) \
+		$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) \
 		snaphu.c \
 		$(OBJS) \
 		-o $(SNAPHU) \