diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-14 09:03:08 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-14 09:03:08 +0200 |
commit | ea6e5d22a833db0f39ac1bbbbf9331624a4db36c (patch) | |
tree | 572441b6ce04df924ad14c5bed37f4edfa39e97a | |
parent | 879be9db4f7fb285eb42a3f0479eaed457870097 (diff) |
Clarify why we use c.libs rather than import
-rw-r--r-- | buildfile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |