summaryrefslogtreecommitdiff
path: root/buildfile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-08-14 09:03:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-08-14 09:03:08 +0200
commitea6e5d22a833db0f39ac1bbbbf9331624a4db36c (patch)
tree572441b6ce04df924ad14c5bed37f4edfa39e97a /buildfile
parent879be9db4f7fb285eb42a3f0479eaed457870097 (diff)
Clarify why we use c.libs rather than import
Diffstat (limited to 'buildfile')
-rw-r--r--buildfile7
1 files changed, 6 insertions, 1 deletions
diff --git a/buildfile b/buildfile
index 1a1e3c5..37cd4d2 100644
--- a/buildfile
+++ b/buildfile
@@ -34,7 +34,12 @@ if ($c.target.class != "windows")
# SQLITE_ENABLE_LOAD_EXTENSION requires -ldl
# SQLITE_ENABLE_FTS5 requires -lm (calls log(1))
#
- # @@ Should we import instead?
+ # You may be wondering why we didn't import them instead. While it would be
+ # almost equivalent, there is a subtle difference: if we import them, then
+ # build2 will start selecting static/shared libraries and we probably don't
+ # want that here. These libraries are in a sense an extension of -lc and we
+ # want them to be linked in the same way as -lc (e.g., the user will have to
+ # specify -static to force static linking and so on).
#
c.libs += -lpthread -ldl -lm