aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-07-02 13:52:31 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-07-02 13:52:31 +0300
commit49e01fdf03019e4c86bafe868f2d73d44da98f2b (patch)
tree98f4cf5eb6eab87b636fe6e7c5e9e8af22350eca /build.sh
parent1c1e5e9fa8694411c6cec695a5b6ed5b3c255899 (diff)
Use config.install.private=build2 in build.sh for installing build2 toolchain
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index a8f5bb5..7ab3b67 100755
--- a/build.sh
+++ b/build.sh
@@ -253,10 +253,12 @@ sys="$(build2/config.guess | sed -n 's/^[^-]*-[^-]*-\(.*\)$/\1/p')"
case "$sys" in
mingw32 | mingw64 | msys | msys2 | cygwin)
conf_rpath="[null]"
+ conf_rpath_stage="[null]"
conf_sudo="[null]"
;;
*)
- conf_rpath="$idir/lib"
+ conf_rpath="$idir/lib/build2"
+ conf_rpath_stage="$idir/lib"
if test -n "$sudo"; then
conf_sudo="$sudo"
@@ -318,6 +320,7 @@ config.cc.coptions="$*" \
config.bin.lib=shared \
config.bin.rpath="$conf_rpath" \
config.install.root="$idir" \
+config.install.private=build2 \
config.install.sudo="$conf_sudo"
run build2/build2/b-boot $verbose $jobs install: build2/ bpkg/ bdep/
@@ -344,7 +347,7 @@ run build2/build2/b-boot $verbose configure \
config.cxx="$cxx" \
config.bin.lib=shared \
config.bin.suffix=-stage \
-config.bin.rpath="$conf_rpath" \
+config.bin.rpath="$conf_rpath_stage" \
config.install.root="$idir" \
config.install.data_root=root/stage \
config.install.sudo="$conf_sudo"
@@ -371,6 +374,7 @@ config.cc.coptions="$*" \
config.bin.lib=shared \
config.bin.rpath="$conf_rpath" \
config.install.root="$idir" \
+config.install.private=build2 \
config.install.sudo="$conf_sudo"
run bpkg-stage $verbose add "$BUILD2_REPO"