mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-05-09 03:41:10 +08:00
env-gcc-4.9
This commit is contained in:
parent
53927a4b16
commit
041ae54e38
23
env-gcc-4.9.sh
Executable file
23
env-gcc-4.9.sh
Executable file
@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Look for GCC-4.9
|
||||
x=`which gcc-4.9 2>/dev/null`
|
||||
if [ -n "$x" ]; then
|
||||
gdir=`dirname $x`
|
||||
elif [ -f "/usr/gcc-4.9/bin/gcc" ]; then
|
||||
gdir="/usr/gcc-4.9/bin"
|
||||
else
|
||||
echo Cannot find GCC 4.9
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo GCC is in $gdir
|
||||
|
||||
export CC="$gdir/gcc"
|
||||
export CPP="$gdir/cpp"
|
||||
export CXX="$gdir/g++"
|
||||
|
||||
echo Starting subshell. Type exit to exit.
|
||||
|
||||
$SHELL
|
||||
|
Loading…
x
Reference in New Issue
Block a user