summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2012-06-21 12:35:18 -0400
committerKenneth Heafield <github@kheafield.com>2012-06-21 12:35:18 -0400
commitf3fef50a89e8e88da39e3c7000310c9e319d5cfc (patch)
treed83047827142e60a9c575b92aabcfa342af5658a
parentdc67307d5fc703941a129da0ce7b23fe3712127b (diff)
Pull in build changes from Moses
-rw-r--r--jam-files/sanity.jam9
1 files changed, 4 insertions, 5 deletions
diff --git a/jam-files/sanity.jam b/jam-files/sanity.jam
index 957f4f43..aefed9c0 100644
--- a/jam-files/sanity.jam
+++ b/jam-files/sanity.jam
@@ -19,9 +19,8 @@ ldflags = [ os.environ "LDFLAGS" ] ;
#Run g++ with empty main and these arguments to see if it passes.
rule test_flags ( flags * ) {
- local add = $(CXXFLAGS) $(LDFLAGS) ;
- add ?= "" ;
- local cmd = "bash -c \"g++ $(add) "$(flags:J=" ")" -x c++ - <<<'int main() {}' -o /dev/null >/dev/null 2>/dev/null\"" ;
+ flags = $(cxxflags) $(ldflags) $(flags) ;
+ local cmd = "bash -c \"g++ "$(flags:J=" ")" -x c++ - <<<'int main() {}' -o /dev/null >/dev/null 2>/dev/null\"" ;
local ret = [ SHELL $(cmd) : exit-status ] ;
if --debug-configuration in [ modules.peek : ARGV ] {
echo $(cmd) ;
@@ -159,8 +158,8 @@ rule external-lib ( name : search-path * ) {
}
{
- #Boost jam's static clang is buggy.
- requirements += <cxxflags>$(cxxflags) <cflags>$(cflags) <linkflags>$(ldflags) <toolset>clang:<link>shared ;
+ #Boost jam's static clang for Linux is buggy.
+ requirements += <cxxflags>$(cxxflags) <cflags>$(cflags) <linkflags>$(ldflags) <os>LINUX,<toolset>clang:<link>shared ;
#libSegFault prints a stack trace on segfault. Link against it if available.
if [ test_flags "-lSegFault" ] {