From c999ef70e807e672d58aa7e30af62ed8492bc2c2 Mon Sep 17 00:00:00 2001 From: Manuel Jacob Date: Fri, 2 Oct 2015 14:19:00 +0200 Subject: [PATCH] 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. --- mk/lib.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mk/lib.mk b/mk/lib.mk index 4ad5c636c..bb82801d3 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