diff options
Diffstat (limited to 'mk/lib.mk')
-rw-r--r-- | mk/lib.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mk/lib.mk b/mk/lib.mk index 6bcd83a06e5f..56e162d5007c 100644 --- a/mk/lib.mk +++ b/mk/lib.mk @@ -32,8 +32,11 @@ 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 |