about summary refs log tree commit diff
path: root/mk
diff options
context:
space:
mode:
authorManuel Jacob <me@manueljacob.de>2015-10-02T12·19+0200
committerManuel Jacob <me@manueljacob.de>2015-10-06T20·28+0200
commitc999ef70e807e672d58aa7e30af62ed8492bc2c2 (patch)
tree6ab7a83058ea1fb39597eb0236059d453ee9946a /mk
parentcbc177ca013ff9d87b36074eab9de6261f37bdaf (diff)
Don't pass "--no-copy-dt-needed-entries" option to linker on FreeBSD.
Eventually the nested if statements should be replaced by a more general
condition, but this is sufficient to make it work on FreeBSD.
Diffstat (limited to 'mk')
-rw-r--r--mk/lib.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/lib.mk b/mk/lib.mk
index 4ad5c636c8d4..bb82801d3b4e 100644
--- a/mk/lib.mk
+++ b/mk/lib.mk
@@ -61,7 +61,9 @@ ifeq ($(BUILD_SHARED_LIBS), 1)
   endif
   ifneq ($(OS), Darwin)
    ifneq ($(OS), SunOS)
-    GLOBAL_LDFLAGS += -Wl,--no-copy-dt-needed-entries
+    ifneq ($(OS), FreeBSD)
+     GLOBAL_LDFLAGS += -Wl,--no-copy-dt-needed-entries
+    endif
    endif
   endif
   SET_RPATH_TO_LIBS ?= 1