diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-08-28 16:21:03 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-08-28 16:21:03 +0200 |
commit | 28dcef63d86dc5a86919c45facddbf4e70d7b3bf (patch) | |
tree | c1b396d066b84d02d318d948a8f0254aaf8cce1a /libbuild2/buildfile | |
parent | 995585489750512a28f84b028b3eea30c3a9c075 (diff) |
Cleanup buildfiles some more
Diffstat (limited to 'libbuild2/buildfile')
-rw-r--r-- | libbuild2/buildfile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libbuild2/buildfile b/libbuild2/buildfile index feabdab..c419dd1 100644 --- a/libbuild2/buildfile +++ b/libbuild2/buildfile @@ -70,6 +70,10 @@ for t: cxx{ *.test...} \ # Build options. # +# NOTE: this scope happens to be outer to the bundled modules which means they +# will inherit any scope-wide options. So we should normally only set +# them on targets. +# obja{*}: cxx.poptions += -DLIBBUILD2_STATIC_BUILD objs{*}: cxx.poptions += -DLIBBUILD2_SHARED_BUILD @@ -92,10 +96,10 @@ if! $cross if ($cxx.target.class != 'windows') { - cxx.libs += -lpthread + libul{build2}: cxx.libs += -lpthread if ($cxx.target.class != "bsd") - cxx.libs += -ldl + libul{build2}: cxx.libs += -ldl } # Export options. |