On Mon, 11 Jan 2016 21:08:37 +0100 Balint Reczey
<[email protected]> wrote:
...
> Please let -fsanitize=* flags pass to linker. The attached patch
> enables building packages using libtool on hardened1-linux-amd64,
> where ASAN and UBSAN are enabled by default.
Also pass -fno-sanitize=* to be fair to them. :-)
diff --git a/libltdl/config/ltmain.sh b/libltdl/config/ltmain.sh
index 63ae69d..42854b1 100644
--- a/libltdl/config/ltmain.sh
+++ b/libltdl/config/ltmain.sh
@@ -5529,6 +5529,11 @@ func_mode_link ()
continue
;;
+ -fsanitize=* | -fno-sanitize=*)
+ func_append compiler_flags " $arg"
+ func_append linker_flags " $arg"
+ ;;
+
-inst-prefix-dir)
prev=inst_prefix
continue