aboutsummaryrefslogtreecommitdiff
path: root/lib.mk
diff options
context:
space:
mode:
Diffstat (limited to 'lib.mk')
-rw-r--r--lib.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib.mk b/lib.mk
index 3fde7fe91..56e162d50 100644
--- a/lib.mk
+++ b/lib.mk
@@ -32,7 +32,9 @@ ifeq ($(BUILD_SHARED_LIBS), 1)
GLOBAL_CFLAGS += -fPIC
GLOBAL_CXXFLAGS += -fPIC
ifneq ($(OS), Darwin)
+ ifneq ($(OS), SunOS)
GLOBAL_LDFLAGS += -Wl,--no-copy-dt-needed-entries
+ endif
endif
SET_RPATH_TO_LIBS ?= 1
endif