mirror of
https://git.planet-casio.com/Lephenixnoir/sh-elf-gcc.git
synced 2024-12-26 19:43:38 +01:00
26affe51cf
The main change is making the scripts a two-stage process where we first build GCC, leave the user to install the libc, and then come back to install libstdc++-v3. * Detect whether we are in the first or second stage * Don't clean files after first stage install, and even then only do it if :clean is specified * Update README except for the manual install tutorial * Patch the source using a backported GCC 12.1 commit to make the configure script for libstdc++-v3 skip checking for dlopen, which is impossible is our not-really-hosted setup Details: * Proper .gitignore
18 lines
483 B
Bash
Executable file
18 lines
483 B
Bash
Executable file
#! /usr/bin/env bash
|
|
|
|
source util.sh
|
|
PREFIX="$1"
|
|
|
|
echo "$TAG Removing symlinks to $PREFIX/bin..."
|
|
TOOLS="c++ cpp g++ gcc gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool \
|
|
lto-dump"
|
|
|
|
for t in $TOOLS; do
|
|
[[ -L "$PREFIX/bin/sh-elf-$t" ]] && rm "$PREFIX/bin/sh-elf-$t"
|
|
done
|
|
for l in "$PREFIX"/bin/sh3eb-elf-gcc-*; do
|
|
[[ -L "$l" ]] && rm "$l"
|
|
done
|
|
|
|
echo "$TAG Other files are managed by the fxSDK's SuperH sysroot"
|
|
echo "$TAG Uninstall Lephenixnoir/fxsdk to clean up the sysroot"
|