aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/buildfile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-06-15 08:12:41 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-06-15 08:12:41 +0200
commitbd9ca1e55dc1396da73c4699ccc021dc1f604fe6 (patch)
tree37ed64460cf16ae8b83848f0ef97fcf9f28ecd66 /libbuild2/buildfile
parentfda8db23380e997e08b45a00476c6965ac33c92c (diff)
Diagnose building of module or ad hoc C++ recipe using static build system
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.