diff options
author | Dave Blake <oak99sky@yahoo.co.uk> | 2020-12-06 22:45:28 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-06 22:45:28 +0000 |
commit | f98835b43655f82278b2b1633aef8ca07785e672 (patch) | |
tree | 4d9e9016c655ed677e381276216bb680afabd670 | |
parent | 82a59f19d6a358ac995ee712cc04aa26c610c654 (diff) | |
parent | c07caf05d11681ca0622d61e8c4138d080ff7584 (diff) |
Merge pull request #18906 from yol/wayland-release-build
[depends] fix wayland build in release mode
-rw-r--r-- | tools/depends/target/config.site.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/depends/target/config.site.in b/tools/depends/target/config.site.in index 142624fcaa..bb8a591bcd 100644 --- a/tools/depends/target/config.site.in +++ b/tools/depends/target/config.site.in @@ -70,6 +70,14 @@ ac_cv_file__dev_ptc=no #gnutls gl_cv_func_gettimeofday_clobber=no +#wayland +if test "${PACKAGE_NAME}" = "wayland"; then + # wayland insists on building tests which rely on assert, which cannot work with -DNDEBUG + # Maybe it would be better not to define -DNDEBUG globally for release builds? + export CFLAGS=`echo ${CFLAGS} | sed 's/-DNDEBUG=1//g'` + export CPPFLAGS=`echo ${CPPFLAGS} | sed 's/-DNDEBUG=1//g'` +fi + if test "@platform_os@" = "android"; then ac_cv_func_srand=yes |