From d94d6d75fe16cf780cf6b1a7b9d8632d87d50cde Mon Sep 17 00:00:00 2001 From: Torok Edwin Date: Wed, 15 Jul 2015 16:33:23 +0300 Subject: [PATCH] Use CCLINKFLAGS for linking all executables and shared libraries This allows packagers to set additional linker flags for executables and shared libraries created by OCaml, and for the OCaml tools themselves. OCaml code can be linked with various C stubs and C libraries that would benefit from using hardening link flags, such as -Wl,-z,relro. Origin: other Bug-Debian: https://bugs.debian.org/702349 Forwarded: no Last-Update: <2021-12-21> Gbp-Pq: Name 0002-Use-CCLINKFLAGS-for-linking-all-executables-and-shar.patch --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index ebb8bbdb..d27d47bc 100644 --- a/configure.ac +++ b/configure.ac @@ -987,6 +987,9 @@ AS_IF([test x"$enable_shared" != "xno"], natdynlinkopts="-Wl,-E" supports_shared_libraries=true])]) +mksharedlib="$mksharedlib $CCLINKFLAGS" +mkexe="$mkexe $CCLINKFLAGS" + AS_IF([test -z "$mkmaindll"], [mkmaindll=$mksharedlib]) # Configure native dynlink -- 2.30.2