From 54359cb9b0b473aa9733965e48214ab71cd35d21 Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Fri, 28 Jan 2022 19:59:27 +1100 Subject: Guard macOS option for dynamic library from being active on Linux. --- gtk/makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/makefile b/gtk/makefile index fcffdcbcd..03a2b074e 100644 --- a/gtk/makefile +++ b/gtk/makefile @@ -48,9 +48,11 @@ GTK_VERSION = $(if $(GTK3),gtk+-3.0,gtk+-2.0) # Enable Position Independent Code except on Windows where it is the default so the flag produces a warning ifndef windir BASE_FLAGS += -fPIC +ifeq ($(shell uname),Darwin) +LDFLAGS += -dynamiclib +endif endif -LDFLAGS += -dynamiclib LDFLAGS += -shared # Take care of changing Unix style '/' directory separator to '\' on Windows -- cgit v1.2.3