File: 0003-Add-hardening-flag.patch

package info (click to toggle)
calculix-ccx 2.20-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 13,932 kB
  • sloc: fortran: 154,841; ansic: 60,488; sh: 456; makefile: 37; perl: 22
file content (22 lines) | stat: -rw-r--r-- 779 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Nilesh Patra <nilesh@debian.org>
Date: Wed, 13 Apr 2022 18:06:14 +0530
Subject: Propagate hardening options by adding LDFLAGS

Last-Update: 2021-02-08
---
 ccx_2.20/src/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ccx_2.20/src/Makefile b/ccx_2.20/src/Makefile
index 8f3ee73..7f846e4 100755
--- a/ccx_2.20/src/Makefile
+++ b/ccx_2.20/src/Makefile
@@ -21,7 +21,7 @@ OCCXMAIN = $(SCCXMAIN:.c=.o)
 LIBS =  -lspooles -lpthread -larpack -llapack -lblas -lm -lc
 
 ccx_2.20: $(OCCXMAIN) ccx_2.20.a
-	$(CC) $(CFLAGS) -c ccx_2.20.c; $(FC)  -Wall -O2 -o $@ $(OCCXMAIN) ccx_2.20.a $(LIBS) -fopenmp
+	$(CC) $(CFLAGS) -c ccx_2.20.c; $(FC)  -Wall -O2 -o $@ $(OCCXMAIN) ccx_2.20.a $(LIBS) -fopenmp $(LDFLAGS)
 
 ccx_2.20.a: $(OCCXF) $(OCCXC)
 	ar vr $@ $?