mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
build env gcc-4.8
This commit is contained in:
23
env-gcc-4.8.sh
Executable file
23
env-gcc-4.8.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Look for GCC-4.8
|
||||
x=`which gcc-4.8 2>/dev/null`
|
||||
if [ -n "$x" ]; then
|
||||
gdir=`dirname $x`
|
||||
elif [ -f "/usr/gcc-4.8/bin/gcc" ]; then
|
||||
gdir="/usr/gcc-4.8/bin"
|
||||
else
|
||||
echo Cannot find GCC 4.8
|
||||
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
|
||||
|
Reference in New Issue
Block a user