aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPhilipp Kerling <yol@casix.org>2020-12-06 16:06:11 +0100
committerPhilipp Kerling <yol@casix.org>2020-12-06 16:06:11 +0100
commitc07caf05d11681ca0622d61e8c4138d080ff7584 (patch)
tree4d9e9016c655ed677e381276216bb680afabd670 /tools
parent82a59f19d6a358ac995ee712cc04aa26c610c654 (diff)
[depends] fix wayland build in release mode
configure.ac sets -DNDEBUG=1 for all packages in release mode, which libwayland cannot cope with in newer releases.
Diffstat (limited to 'tools')
-rw-r--r--tools/depends/target/config.site.in8
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