aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/buildfile
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/buildfile')
-rw-r--r--libbuild2/buildfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbuild2/buildfile b/libbuild2/buildfile
index 29a559c..ce5a090 100644
--- a/libbuild2/buildfile
+++ b/libbuild2/buildfile
@@ -167,8 +167,10 @@ if ($cxx.target.class != 'windows')
{
libul{build2}: cxx.libs += -lpthread
+ # Note: only linking libdl in shared build.
+ #
if ($cxx.target.class != "bsd")
- libul{build2}: cxx.libs += -ldl
+ libus{build2}: cxx.libs += -ldl
}
# Export options.