mirror of
https://git.planet-casio.com/Lephenixnoir/sh-elf-gcc.git
synced 2025-06-01 16:35:13 +02:00
explicitly link previously-built binutils to GCC
This commit is contained in:
parent
2e85c7fbc4
commit
0400e3c470
2 changed files with 21 additions and 0 deletions
|
@ -36,6 +36,15 @@ mkdir build
|
||||||
# directory and later symlink executables to $PREFIX/bin.
|
# directory and later symlink executables to $PREFIX/bin.
|
||||||
|
|
||||||
PREFIX="$(pwd)"
|
PREFIX="$(pwd)"
|
||||||
|
|
||||||
|
# Symlink as, ld, ar and ranlib, which gcc will not find by itself (we renamed
|
||||||
|
# them from sh3eb-elf-* to sh-elf-* with --program-prefix).
|
||||||
|
mkdir -p sh3eb-elf/bin
|
||||||
|
ln -s $(command -v sh-elf-as) sh3eb-elf/bin/as
|
||||||
|
ln -s $(command -v sh-elf-ld) sh3eb-elf/bin/ld
|
||||||
|
ln -s $(command -v sh-elf-ar) sh3eb-elf/bin/ar
|
||||||
|
ln -s $(command -v sh-elf-ranlib) sh3eb-elf/bin/ranlib
|
||||||
|
|
||||||
cd build
|
cd build
|
||||||
|
|
||||||
echo "$TAG Configuring gcc..."
|
echo "$TAG Configuring gcc..."
|
||||||
|
|
12
util.sh
12
util.sh
|
@ -9,3 +9,15 @@ run_quietly() {
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Names of binutils tools, otherwise GCC assumes sh3eb-elf-*
|
||||||
|
export AR_FOR_TARGET=sh-elf-ar
|
||||||
|
export AS_FOR_TARGET=sh-elf-as
|
||||||
|
export DLLTOOL_FOR_TARGET=sh-elf-dlltool
|
||||||
|
export LD_FOR_TARGET=sh-elf-ld
|
||||||
|
export NM_FOR_TARGET=sh-elf-nm
|
||||||
|
export OBJCOPY_FOR_TARGET=sh-elf-objcopy
|
||||||
|
export OBJDUMP_FOR_TARGET=sh-elf-objdump
|
||||||
|
export RANLIB_FOR_TARGET=sh-elf-ranlib
|
||||||
|
export READELF_FOR_TARGET=sh-elf-readelf
|
||||||
|
export STRIP_FOR_TARGET=sh-elf-strip
|
||||||
|
|
Loading…
Add table
Reference in a new issue