about summary refs log tree commit diff
path: root/lib.mk
diff options
context:
space:
mode:
Diffstat (limited to 'lib.mk')
-rw-r--r--lib.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib.mk b/lib.mk
index 2d8ceef55f3e..5b0d2633cce4 100644
--- a/lib.mk
+++ b/lib.mk
@@ -9,6 +9,7 @@ default: all
 QUIET = @
 bin_SCRIPTS :=
 noinst_SCRIPTS :=
+OS = $(shell uname -s)
 
 
 # Default installation paths.
@@ -27,7 +28,9 @@ BUILD_SHARED_LIBS ?= 1
 ifeq ($(BUILD_SHARED_LIBS), 1)
   GLOBAL_CFLAGS += -fPIC
   GLOBAL_CXXFLAGS += -fPIC
-  GLOBAL_LDFLAGS += -Wl,--no-copy-dt-needed-entries
+  ifneq ($(OS), Darwin)
+    GLOBAL_LDFLAGS += -Wl,--no-copy-dt-needed-entries
+  endif
 endif