From c999ef70e807e672d58aa7e30af62ed8492bc2c2 Mon Sep 17 00:00:00 2001 From: Manuel Jacob Date: Fri, 2 Oct 2015 14:19:00 +0200 Subject: 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(-) (limited to 'mk') 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 -- cgit 1.4.1