aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-06-10 11:38:10 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-06-10 11:38:10 +0200
commit045ed0741162e86d91828e3b96ef6c521e578a39 (patch)
tree1d9794483e51867ffe2f1119ca2bc7c8cc20c1ae /libbuild2
parent545cc8ae0ac68744c4dd23a4a766c89309a64044 (diff)
Fix bootstrap build
Diffstat (limited to 'libbuild2')
-rw-r--r--libbuild2/module.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/libbuild2/module.cxx b/libbuild2/module.cxx
index cfedefe..4c663a3 100644
--- a/libbuild2/module.cxx
+++ b/libbuild2/module.cxx
@@ -190,6 +190,8 @@ namespace build2
void* h (nullptr);
void* s (nullptr);
+#ifndef BUILD2_BOOTSTRAP
+
#ifndef _WIN32
// Use RTLD_NOW instead of RTLD_LAZY to both speed things up (we are going
// to use this module now) and to detect any symbol mismatches.
@@ -216,6 +218,8 @@ namespace build2
err = win32::last_error_msg ();
#endif
+#endif // BUILD2_BOOTSTRAP
+
return make_pair (h, s);
}