[vlc-commits] configure: fix link error with --with-sanitizer=address

Thomas Guillem git at videolan.org
Sat Nov 11 11:35:45 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Sat Nov 11 11:29:08 2017 +0100| [2498a3832022cdc832646e6f4cff4314fa9cf893] | committer: Thomas Guillem

configure: fix link error with --with-sanitizer=address

Fixed by
http://git.savannah.gnu.org/cgit/libtool.git/commit/?id=a5c6466528c060cc4660ad0319c00740db0e42ba
but there is no libtool release yet.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2498a3832022cdc832646e6f4cff4314fa9cf893
---

 configure.ac | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure.ac b/configure.ac
index 9e9571dea4..71d2eb8132 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1025,6 +1025,7 @@ AS_VAR_IF(with_sanitizer, no, [], [
     AS_IF([test -z "${with_sanitizer##*address*}" ], [
        AX_APPEND_COMPILE_FLAGS([-fsanitize-address-use-after-scope -fno-omit-frame-pointer])
        AX_APPEND_COMPILE_FLAGS([-fsanitize-address-use-after-scope -fno-omit-frame-pointer], [CXXFLAGS])
+       AX_APPEND_COMPILE_FLAGS([-lasan], [LDFLAGS])
     ])
     AS_IF([test -z "${with_sanitizer##*memory*}" ], [
         AX_APPEND_COMPILE_FLAGS([-fPIE -pie])



More information about the vlc-commits mailing list