Skip to content

Commit

Permalink
Don't pass "--no-copy-dt-needed-entries" option to linker on FreeBSD.
Browse files Browse the repository at this point in the history
Eventually the nested if statements should be replaced by a more general
condition, but this is sufficient to make it work on FreeBSD.
  • Loading branch information
manueljacob committed Oct 6, 2015
1 parent cbc177c commit c999ef7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mk/lib.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit c999ef7

@shlevy
Copy link
Member

@shlevy shlevy commented on c999ef7 Aug 30, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@edolstra Shouldn't this go into edolstra/make-rules?

Please sign in to comment.