From a13ed54afec0e388956196c9aedfc9e52651ca5c Mon Sep 17 00:00:00 2001 From: JP Cimalando Date: Thu, 10 Jan 2019 15:33:16 +0100 Subject: Fix the link order for Cairo and GDI --- Makefile.base.mk | 9 ++++----- Makefile.plugins.mk | 2 ++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile.base.mk b/Makefile.base.mk index d481c85b..1839635a 100644 --- a/Makefile.base.mk +++ b/Makefile.base.mk @@ -197,16 +197,16 @@ HAVE_LIBLO = $(shell pkg-config --exists liblo && echo true) # Set Generic DGL stuff ifeq ($(MACOS),true) -DGL_LIBS += -framework Cocoa +DGL_SYSTEM_LIBS += -framework Cocoa endif ifeq ($(WINDOWS),true) -DGL_LIBS += -lgdi32 +DGL_SYSTEM_LIBS += -lgdi32 endif ifneq ($(HAIKU_OR_MACOS_OR_WINDOWS),true) -DGL_FLAGS += $(shell pkg-config --cflags x11) -DGL_LIBS += $(shell pkg-config --libs x11) +DGL_FLAGS += $(shell pkg-config --cflags x11) +DGL_SYSTEM_LIBS += $(shell pkg-config --libs x11) endif # --------------------------------------------------------------------------------------------------------------------- @@ -223,7 +223,6 @@ 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 diff --git a/Makefile.plugins.mk b/Makefile.plugins.mk index 76ddddd2..204c07ff 100644 --- a/Makefile.plugins.mk +++ b/Makefile.plugins.mk @@ -91,6 +91,8 @@ HAVE_DGL = false endif endif +DGL_LIBS += $(DGL_SYSTEM_LIBS) + ifneq ($(HAVE_DGL),true) dssi_ui = lv2_ui = -- cgit v1.2.3