aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 00a8f89..83be153 100644
--- a/Makefile
+++ b/Makefile
@@ -21,6 +21,11 @@ endif
REQ_PKGS += libsoup-2.4 gthread-2.0 glib-2.0
+# Check for a new glib version
+ifeq ($(shell pkg-config --exists "glib-2.0 >= 2.31.0" && echo 1),1)
+ CPPFLAGS += -DUZBL_GTHREAD_NO_INIT
+endif
+
ARCH:=$(shell uname -m)
COMMIT_HASH:=$(shell ./misc/hash.sh)