about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManuel Jacob <me@manueljacob.de>2015-10-02T13·35+0200
committerManuel Jacob <me@manueljacob.de>2015-10-06T20·28+0200
commit12c1776df9c1e658c614cfd5b2cf398dc7202689 (patch)
tree55852a0e86d6d7ae6599b52e2b983c72afb8ff39
parentc999ef70e807e672d58aa7e30af62ed8492bc2c2 (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.mk5
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),