File: 0011-makefile-fix-Add-LDFLAGS-to-SOLDFLAGS-to-pick-up-har.patch

package info (click to toggle)
cbflib 0.9.7%2Bdfsg1-5.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 65,276 kB
  • sloc: ansic: 131,361; python: 22,780; sh: 3,108; makefile: 2,089; yacc: 659; java: 223; f90: 214; xml: 210; cpp: 58
file content (22 lines) | stat: -rw-r--r-- 719 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Teemu Ikonen <tpikonen@gmail.com>
Date: Sat, 13 Oct 2018 22:02:49 +0300
Subject: makefile-fix: Add LDFLAGS to SOLDFLAGS to pick up hardening flags
 etc.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 0213090..c648aa8 100644
--- a/Makefile
+++ b/Makefile
@@ -678,7 +678,7 @@ F90C = gfortran
 F90FLAGS = -g -fno-range-check -fallow-invalid-boz
 F90LDFLAGS =
 SOCFLAGS = -fPIC
-SOLDFLAGS = -shared -Wl,-soname -Wl,$(SONAME)
+SOLDFLAGS = $(LDFLAGS) -shared -Wl,-soname -Wl,$(SONAME)
 JAVAINCLUDES = -I$(JDKDIR)/include -I$(JDKDIR)/include/linux
 ifeq ($(HDF5_PREFIX),)
 LDPREFIX = LD_LIBRARY_PATH=$(SOLIB):$(LIB):$$LD_LIBRARY_PATH;export LD_LIBRARY_PATH;