summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJP Cimalando <jp-dev@inbox.ru>2019-01-09 21:04:44 +0100
committerFilipe Coelho <falktx@falktx.com>2019-01-11 10:29:59 +0100
commitdf66eabaaee8989aca8c2363734e46c159518819 (patch)
tree9c44f341dc896c2395b9e99dcda18341e300db98
parent19d88d2db504c0d0f3505f10c43850c748e6ffe4 (diff)
On Windows, statically link Cairo with dependencies
Pkg-config must be invoked with --static, to link other dependency libraries such as pixman.
-rw-r--r--Makefile.base.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.base.mk b/Makefile.base.mk
index 7274bade..d481c85b 100644
--- a/Makefile.base.mk
+++ b/Makefile.base.mk
@@ -216,8 +216,15 @@ ifeq ($(HAVE_CAIRO),true)
DGL_FLAGS += -DHAVE_CAIRO
+ifneq ($(WINDOWS),true)
CAIRO_FLAGS = $(shell pkg-config --cflags cairo)
CAIRO_LIBS = $(shell pkg-config --libs cairo)
+else
+# Always build statically on windows
+CAIRO_FLAGS = $(shell pkg-config --static --cflags cairo)
+CAIRO_LIBS = $(shell pkg-config --static --libs cairo)
+CAIRO_LIBS += -lgdi32
+endif
HAVE_CAIRO_OR_OPENGL = true