Browse Source

On Windows, statically link Cairo with dependencies

Pkg-config must be invoked with --static, to link other dependency libraries
such as pixman.
pull/108/head
JP Cimalando Filipe Coelho <falktx@falktx.com> 6 years ago
parent
commit
df66eabaae
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      Makefile.base.mk

+ 7
- 0
Makefile.base.mk View File

@@ -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



Loading…
Cancel
Save