dosbox-x/env-gcc-9.3.sh
Jonathan Campbell 6c45f05294 more
2020-05-11 16:27:56 -07:00

25 lines
393 B
Bash
Executable File

#!/bin/bash
#
# Look for GCC-9.3
x=`which gcc-9.3 2>/dev/null`
if [ -n "$x" ]; then
gdir=`dirname $x`
elif [ -f "/usr/gcc-9.3/bin/gcc" ]; then
gdir="/usr/gcc-9.3/bin"
else
echo Cannot find GCC 9.3
exit 1
fi
echo GCC is in $gdir
export CC="$gdir/gcc"
export CPP="$gdir/cpp"
export CXX="$gdir/g++"
export PATH="$gdir:$PATH"
echo Starting subshell. Type exit to exit.
$SHELL