Skip to content

Commit 0a8b8fe

Browse files
committed
configure: allow configuring bindir
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
1 parent b310a25 commit 0a8b8fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

configure

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,7 @@ valopt_nosave host "${CFG_BUILD}" "GNUs ./configure syntax LLVM host triples"
519519
valopt_nosave target "${CFG_HOST}" "GNUs ./configure syntax LLVM target triples"
520520
valopt_nosave mandir "${CFG_PREFIX}/share/man" "install man pages in PATH"
521521
valopt_nosave docdir "${CFG_PREFIX}/share/doc/rust" "install documentation in PATH"
522+
valopt_nosave bindir "${CFG_PREFIX}/bin" "install binaries"
522523

523524
# On Windows this determines root of the subtree for target libraries.
524525
# Host runtime libs always go to 'bin'.
@@ -710,6 +711,7 @@ envopt LDFLAGS
710711
CFG_PREFIX=${CFG_PREFIX%/}
711712
CFG_MANDIR=${CFG_MANDIR%/}
712713
CFG_DOCDIR=${CFG_DOCDIR%/}
714+
CFG_BINDIR=${CFG_BINDIR%/}
713715
CFG_HOST="$(echo $CFG_HOST | tr ',' ' ')"
714716
CFG_TARGET="$(echo $CFG_TARGET | tr ',' ' ')"
715717

@@ -750,6 +752,7 @@ putvar CFG_X86_64_LINUX_ANDROID_NDK
750752
putvar CFG_NACL_CROSS_PATH
751753
putvar CFG_MANDIR
752754
putvar CFG_DOCDIR
755+
putvar CFG_BINDIR
753756
putvar CFG_USING_LIBCPP
754757

755758
msg

0 commit comments

Comments
 (0)