aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2022-01-28 19:59:27 +1100
committerNeil Hodgson <nyamatongwe@gmail.com>2022-01-28 19:59:27 +1100
commit54359cb9b0b473aa9733965e48214ab71cd35d21 (patch)
treedb5c5a2364d384cb9019be7cfa51279e29e91f7f
parent763403769c5c5773e505537b31832f0ad192b5fb (diff)
downloadscintilla-mirror-54359cb9b0b473aa9733965e48214ab71cd35d21.tar.gz
Guard macOS option for dynamic library from being active on Linux.
-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