From bd9ca1e55dc1396da73c4699ccc021dc1f604fe6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 15 Jun 2020 08:12:41 +0200 Subject: Diagnose building of module or ad hoc C++ recipe using static build system --- libbuild2/buildfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libbuild2/buildfile') 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. -- cgit v1.1