From 28dcef63d86dc5a86919c45facddbf4e70d7b3bf Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 28 Aug 2019 16:21:03 +0200 Subject: Cleanup buildfiles some more --- libbuild2/buildfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libbuild2') 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. -- cgit v1.1