Package: libtool Version: 2.4.2-1.11 Severity: wishlist Tags: patch User: bal...@balintreczey.hu Usertags: hardened1-linux-amd64 User: helm...@debian.org Usertags: rebootstrap
Dear libtool maintainers, 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. Upstream also supports passing the sanitizer flags in the master branch [1]. Cheers, Balint [1] http://git.savannah.gnu.org/cgit/libtool.git/commit/?id=a5c6466528c060cc4660ad0319c00740db0e42ba
diff --git a/libltdl/config/ltmain.sh b/libltdl/config/ltmain.sh index 63ae69d..9e1190c 100644 --- a/libltdl/config/ltmain.sh +++ b/libltdl/config/ltmain.sh @@ -5529,6 +5529,11 @@ func_mode_link () continue ;; + -fsanitize=*) + func_append compiler_flags " $arg" + func_append linker_flags " $arg" + ;; + -inst-prefix-dir) prev=inst_prefix continue