diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-07-02 13:52:31 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-07-02 13:52:31 +0300 |
commit | 49e01fdf03019e4c86bafe868f2d73d44da98f2b (patch) | |
tree | 98f4cf5eb6eab87b636fe6e7c5e9e8af22350eca /build.sh | |
parent | 1c1e5e9fa8694411c6cec695a5b6ed5b3c255899 (diff) |
Use config.install.private=build2 in build.sh for installing build2 toolchain
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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" |