mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-05-08 19:32:39 +08:00
25 lines
393 B
Bash
Executable File
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
|
|
|