Skip to content

Commit

Permalink
fixed #2045
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlf committed Jan 17, 2022
1 parent 3c38f1a commit 2a14bfc
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions 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
Expand Down Expand Up @@ -395,6 +395,8 @@ for opt do
;;
--static-mp4box) use_static="yes"
;;
--enable-sanitizer) enable_sanitizer="yes"
;;
esac
done

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 2a14bfc

Please sign in to comment.