[vlc-commits] configure: Fix link when using --with-sanitizer=undefined
Hugo Beauzée-Luyssen
git at videolan.org
Sat Nov 11 11:51:41 CET 2017
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sat Nov 11 11:44:02 2017 +0100| [4567a49be8a07b0bfb39689a53d7dff834a7a5e7] | committer: Hugo Beauzée-Luyssen
configure: Fix link when using --with-sanitizer=undefined
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4567a49be8a07b0bfb39689a53d7dff834a7a5e7
---
configure.ac | 3 +++
1 file changed, 3 insertions(+)
diff --git a/configure.ac b/configure.ac
index 71d2eb8132..b6ca0617bc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1035,6 +1035,9 @@ AS_VAR_IF(with_sanitizer, no, [], [
AX_APPEND_COMPILE_FLAGS([-fPIE -pie])
AX_APPEND_COMPILE_FLAGS([-fPIE -pie], [CXXFLAGS])
])
+ AS_IF([test -z "${with_sanitizer##*undefined*}" ], [
+ AX_APPEND_COMPILE_FLAGS([-lubsan], [LDFLAGS])
+ ])
])
dnl
More information about the vlc-commits
mailing list