From 2a14bfc9f80f5ecfb31c9c92666174140237878a Mon Sep 17 00:00:00 2001 From: jeanlf Date: Mon, 17 Jan 2022 11:16:39 +0100 Subject: [PATCH] fixed #2045 --- configure | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/configure b/configure index ebae2b8905..2cf0245fd8 100755 --- a/configure +++ b/configure @@ -1,7 +1,7 @@ #!/bin/sh # # GPAC configure script -# (c) 2003-2020 Telecom ParisTech +# (c) 2003-2022 Telecom ParisTech # Authors: Jean Le Feuvre, Romain Bouqueau, Aurelien David # #set -v @@ -395,6 +395,8 @@ for opt do ;; --static-mp4box) use_static="yes" ;; + --enable-sanitizer) enable_sanitizer="yes" + ;; esac done @@ -477,6 +479,13 @@ ranlib="${cross_prefix}${ranlib}" strip="${cross_prefix}${strip}" windres="${cross_prefix}${windres}" +if test "$enable_sanitizer" = "yes" ; then +if test "$use_static" = "yes" ; then +echo "Cannot use static bin with sanitizer, disabling static bin" +use_static="no" +fi +fi + if test "$use_static" = "yes" ; then pkg_config="${pkg_config} --static" if test "$darwin" != "yes" ; then @@ -1787,8 +1796,6 @@ for opt do ;; --enable-mem-track) use_memory_tracking="yes" ;; - --enable-sanitizer) enable_sanitizer="yes" - ;; --enable-tinygl) enable_tinygl="yes" ;; --disable-ssl) has_ssl="no"