Use SORTIX_SYSROOT instead of SYSROOT in cross-development.
This commit is contained in:
parent
a5d14bf3c0
commit
0f9a3d93a6
|
@ -57,7 +57,7 @@ typically decide to set them up somewhat like this:
|
||||||
|
|
||||||
SORTIX_PLATFORM=x86_64-sortix
|
SORTIX_PLATFORM=x86_64-sortix
|
||||||
CROSS_PREFIX=/home/user/opt/x86_64-sortix
|
CROSS_PREFIX=/home/user/opt/x86_64-sortix
|
||||||
SYSROOT=/home/user/sortix/sysroot
|
SORTIX_SYSROOT=/home/user/sortix/sysroot
|
||||||
export PATH="/home/user/opt/x86_64-sortix/bin:$PATH"
|
export PATH="/home/user/opt/x86_64-sortix/bin:$PATH"
|
||||||
|
|
||||||
The following sections describe these variables in detail.
|
The following sections describe these variables in detail.
|
||||||
|
@ -118,7 +118,7 @@ libm, and other core library headers into this directory. Run the following:
|
||||||
|
|
||||||
This will automatically set up a basic system root in ~/sortix/sysroot. We will
|
This will automatically set up a basic system root in ~/sortix/sysroot. We will
|
||||||
use this when we build the cross-compiler in a moment. Let's call the system
|
use this when we build the cross-compiler in a moment. Let's call the system
|
||||||
root directory $SYSROOT.
|
root directory $SORTIX_SYSROOT.
|
||||||
|
|
||||||
Cross-Toolchain Dependencies
|
Cross-Toolchain Dependencies
|
||||||
----------------------------
|
----------------------------
|
||||||
|
@ -147,7 +147,7 @@ you can build binutils out-of-directory using these commands:
|
||||||
cd ~/src/binutils-build &&
|
cd ~/src/binutils-build &&
|
||||||
../sortix-binutils/configure \
|
../sortix-binutils/configure \
|
||||||
--target=$SORTIX_PLATFORM \
|
--target=$SORTIX_PLATFORM \
|
||||||
--with-sysroot="$SYSROOT" \
|
--with-sysroot="$SORTIX_SYSROOT" \
|
||||||
--prefix="$CROSS_PREFIX" \
|
--prefix="$CROSS_PREFIX" \
|
||||||
--disable-werror &&
|
--disable-werror &&
|
||||||
make &&
|
make &&
|
||||||
|
@ -168,7 +168,7 @@ you can build gcc out-of-directory using these commands.
|
||||||
cd ~/src/gcc-build &&
|
cd ~/src/gcc-build &&
|
||||||
../sortix-gcc/configure \
|
../sortix-gcc/configure \
|
||||||
--target=$SORTIX_PLATFORM \
|
--target=$SORTIX_PLATFORM \
|
||||||
--with-sysroot=$SYSROOT \
|
--with-sysroot=$SORTIX_SYSROOT \
|
||||||
--prefix="$CROSS_PREFIX" \
|
--prefix="$CROSS_PREFIX" \
|
||||||
--enable-languages=c,c++ &&
|
--enable-languages=c,c++ &&
|
||||||
make all-gcc all-target-libgcc &&
|
make all-gcc all-target-libgcc &&
|
||||||
|
|
Loading…
Reference in New Issue