[build2] possible to do something similar to DESTDIR= make install?

Boris Kolpackov boris at codesynthesis.com
Tue Aug 15 16:12:43 UTC 2017

Ok, I've implemented the makefile and re-staged the toolchain (available
from the same place).

Here is a completely out-of-tree build, for all three stages (bootstrap,
static, shared):

tar xf build2-X.Y.Z.tar.gz
tar xf libbutl-X.Y.Z.tar.gz
mv libbutl-X.Y.Z build2-X.Y.Z/ # build2-X.Y.Z is now your .orig

# Bootstrap (in build2-boot/).
mkdir build2-boot
make -f ../build2-X.Y.Z/bootstrap.gmake CXX=g++ -j 8
cd ..
build2-boot/build2/b-boot --version

# Static build (in build2-static/).
build2-boot/build2/b-boot build2-X.Y.Z/@build2-static/ \
  config.cxx=g++ config.bin.lib=static
build2-static/build2/b --version

# Shared build (build2-shared/).
build2-static/build2/b configure: build2-X.Y.Z/@build2-shared/ \
 config.cxx=g++                     \
 config.cc.coptions=-O3             \
 config.install.root=/usr           \

build2-static/build2/b build2-shared/
build2-static/build2/b install: build2-shared/

Let me know if there are any issues.


More information about the users mailing list