diff options
author | Ryan Hill <dirtyepic@gentoo.org> | 2010-08-14 06:35:54 +0000 |
---|---|---|
committer | Ryan Hill <dirtyepic@gentoo.org> | 2010-08-14 06:35:54 +0000 |
commit | 94c770f2bd45f017c1f4ba5837913c8f848e74b9 (patch) | |
tree | e454d7e88a53d7a578d73ce6cf8847718cc387ed /dev-util/boost-build/files | |
parent | Version bump. (diff) | |
download | gentoo-2-94c770f2bd45f017c1f4ba5837913c8f848e74b9.tar.gz gentoo-2-94c770f2bd45f017c1f4ba5837913c8f848e74b9.tar.bz2 gentoo-2-94c770f2bd45f017c1f4ba5837913c8f848e74b9.zip |
Fix build failures when compiler flags contain whitespace (bug #293652 by
Sebastian Luther).
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/boost-build/files')
-rw-r--r-- | dev-util/boost-build/files/boost-build-1.42-env-whitespace.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/dev-util/boost-build/files/boost-build-1.42-env-whitespace.patch b/dev-util/boost-build/files/boost-build-1.42-env-whitespace.patch new file mode 100644 index 000000000000..681de7a525db --- /dev/null +++ b/dev-util/boost-build/files/boost-build-1.42-env-whitespace.patch @@ -0,0 +1,25 @@ +diff --git a/tools/jam/src/build.jam b/tools/jam/src/build.jam +index e30e854..7b397a3 100644 +--- a/tools/jam/src/build.jam ++++ b/tools/jam/src/build.jam +@@ -2,6 +2,20 @@ + #~ Distributed under the Boost Software License, Version 1.0. + #~ (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) + ++# Clean env vars of any "extra" empty values. ++for local v in ARGV CC CFLAGS ++{ ++ local values ; ++ for local x in $($(v)) ++ { ++ if $(x) != "" ++ { ++ values += $(x) ; ++ } ++ } ++ $(v) = $(values) ; ++} ++ + # Platform related specifics. + if $(NT) { rule .path { return "$(<:J=\\)" ; } ./ = "/" ; } + else if $(OS2) { rule .path { return "$(<:J=\\)" ; } ./ = "/" ; } |