aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gtk/makefile4
1 files changed, 3 insertions, 1 deletions
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