From c924a98daf5d44694fad82ab0474ef1babd37b85 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 0004-Use-CCLINKFLAGS-for-linking-all-executables-and-shar.patch --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 64e6d7e1..4d94dc6c 100644 --- a/configure.ac +++ b/configure.ac @@ -1353,6 +1353,10 @@ AS_CASE([$host], [oc_ldflags="$oc_ldflags -Wl,-z,nobtcfi" natdynlinkopts="$natdynlinkopts -Wl,-z,nobtcfi"]) +# Use CCLINKFLAGS for linking all executables and shared libraries + +mksharedlib="$mksharedlib $CCLINKFLAGS" +mkexe="$mkexe $CCLINKFLAGS" # Configure native dynlink -- 2.30.2