about summary refs log tree commit diff
path: root/mk/lib.mk
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-04-03T15·37+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-04-03T15·37+0200
commitdaa16cca11304a0e91a188176959e2af28be1f57 (patch)
tree5eec8af63571cc622799bd9593a371daf1534ea1 /mk/lib.mk
parentf0de86357c18e18eccd814c8bea3bfdaf10f75f5 (diff)
parent7191a7394a3091ed2856508674f84f3a87eda5a6 (diff)
Sync with make-rules repo
Diffstat (limited to 'mk/lib.mk')
-rw-r--r--mk/lib.mk3
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