File: hardening.patch

package info (click to toggle)
pftools 3.2.12-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 92,208 kB
  • sloc: ansic: 17,779; fortran: 12,000; perl: 2,956; sh: 232; makefile: 26; f90: 3
file content (14 lines) | stat: -rw-r--r-- 525 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Use env LDFLAGS to fix blhc
Author: Nilesh Patra <nilesh@debian.org>
Last-Update: 2022-01-25
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -285,7 +285,7 @@
 ELSE(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
 	OPTION(USE_RPATH "Use -rpath when linking libraries, executables" ON)
 	IF(USE_RPATH)
-		SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--enable-new-dtags")
+		SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--enable-new-dtags $ENV{LDFLAGS}")
 		# use, i.e. don't skip the full RPATH for the build tree
 		SET(CMAKE_SKIP_BUILD_RPATH  FALSE)