summaryrefslogtreecommitdiff
path: root/boost
diff options
context:
space:
mode:
authorDanny Rawlins <monster.romster@gmail.com>2012-07-07 11:52:18 +1000
committerDanny Rawlins <monster.romster@gmail.com>2012-07-07 12:02:07 +1000
commit66e42e7b69fc0e7766651d37cf8f4823bdfcdb51 (patch)
tree404862afc04e317d6cf48261c7482552a1fd68ac /boost
parent4b1f698f17f8d5fe5c61f2358cda0c9f1dba155f (diff)
downloadcontrib-66e42e7b69fc0e7766651d37cf8f4823bdfcdb51.tar.gz
contrib-66e42e7b69fc0e7766651d37cf8f4823bdfcdb51.tar.xz
boost: fix make jobs and add support for ccache
Diffstat (limited to 'boost')
-rw-r--r--boost/Pkgfile7
1 files changed, 6 insertions, 1 deletions
diff --git a/boost/Pkgfile b/boost/Pkgfile
index 1c84bf195..21e68f2c1 100644
--- a/boost/Pkgfile
+++ b/boost/Pkgfile
@@ -12,12 +12,17 @@ source=(http://downloads.sourceforge.net/project/$name/$name/$version/${name}_${
build() {
cd ${name}_${version//./_}
+ if [ -n "$(pkginfo -i | grep '^ccache ')" ]; then
+ echo "using gcc : : ccache g++ ;" >> \
+ tools/build/v2/user-config.jam
+ fi
+
./bootstrap.sh
sed -i -e "s|-O3|$CXXFLAGS -O3 -Wno-deprecated -fno-strict-aliasing|" \
tools/build/v2/tools/gcc.jam
- local JOBS="$(sed -e 's/.*\(\-j[ 0-9]\+\) \{0,1\}.*/\1/' <<< $MAKEFLAGS)"
+ local JOBS="$(sed -e 's/.*\(-j *[0-9]\+\).*/\1/' <<< $MAKEFLAGS)"
pushd tools/bcp
../../bjam \

Generated by cgit