diff options
author | Manuel Jacob <me@manueljacob.de> | 2015-10-02T13·35+0200 |
---|---|---|
committer | Manuel Jacob <me@manueljacob.de> | 2015-10-06T20·28+0200 |
commit | 12c1776df9c1e658c614cfd5b2cf398dc7202689 (patch) | |
tree | 55852a0e86d6d7ae6599b52e2b983c72afb8ff39 | |
parent | c999ef70e807e672d58aa7e30af62ed8492bc2c2 (diff) |
Don't try to link libdl on FreeBSD.
There is no libdl on FreeBSD. Instead the symbols are included in libc.
-rw-r--r-- | src/libexpr/local.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libexpr/local.mk b/src/libexpr/local.mk index d1b1987fb037..5de9ccc6d011 100644 --- a/src/libexpr/local.mk +++ b/src/libexpr/local.mk @@ -10,7 +10,10 @@ libexpr_CXXFLAGS := -Wno-deprecated-register libexpr_LIBS = libutil libstore libformat -libexpr_LDFLAGS = -ldl +libexpr_LDFLAGS = +ifneq ($(OS), FreeBSD) + libexpr_LDFLAGS += -ldl +endif # The dependency on libgc must be propagated (i.e. meaning that # programs/libraries that use libexpr must explicitly pass -lgc), |