Skip to content

Commit 002ac9e

Browse files
Young-LordArusekk
andauthored
Change prefix in install script to $PREFIX (Gallopsled#2079)
* Change prefix in install script to $PREFIX On special envrionments like Termux, /usr/local is not the proper path. * Change prefix in binutils install script to $PREFIX * PREFIX not everywhere Co-authored-by: Arusekk <[email protected]>
1 parent b825e97 commit 002ac9e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/source/install/binutils.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Assembly of foreign architectures (e.g. assembling Sparc shellcode on
55
Mac OS X) requires cross-compiled versions of ``binutils`` to be
66
installed. We've made this process as smooth as we can.
77

8-
In these examples, replace ``$ARCH`` with your target architecture (e.g., arm, mips64, vax, etc.).
8+
In these examples, replace ``$ARCH`` with your target architecture (e.g., arm, aarch64, mips64, vax, etc.).
99

1010
Building `binutils` from source takes about 60 seconds on a modern 8-core machine.
1111

@@ -51,10 +51,10 @@ OSes, ``binutils`` is simple to build by hand.
5151
5252
#!/usr/bin/env bash
5353
54-
V=2.25 # Binutils Version
54+
V=2.38 # Binutils Version
5555
ARCH=arm # Target architecture
5656
57-
cd /tmp
57+
cd $TMP
5858
wget -nc https://ftp.gnu.org/gnu/binutils/binutils-$V.tar.gz
5959
wget -nc https://ftp.gnu.org/gnu/binutils/binutils-$V.tar.gz.sig
6060
@@ -70,7 +70,7 @@ OSes, ``binutils`` is simple to build by hand.
7070
export AS=as
7171
7272
../binutils-$V/configure \
73-
--prefix=/usr/local \
73+
--prefix=${PREFIX:-/usr/local} \
7474
--target=$ARCH-unknown-linux-gnu \
7575
--disable-static \
7676
--disable-multilib \

0 commit comments

Comments
 (0)