updates for msdos cross-compile
gcc 12.1.0 also incorporate a libc patch for djgpp
This commit is contained in:
@@ -8,7 +8,7 @@ else
|
||||
fi
|
||||
|
||||
if [ -z "$GCCVER" ]; then
|
||||
export GCCVER=gcc1020
|
||||
export GCCVER=gcc1210
|
||||
fi
|
||||
|
||||
if [ -z "$LUA_VERSION" ]; then
|
||||
@@ -22,7 +22,10 @@ fi
|
||||
|
||||
#DJGPP_URL="https://github.com/andrewwutw/build-djgpp/releases/download/v2.9/"
|
||||
#DJGPP_URL="https://github.com/andrewwutw/build-djgpp/releases/download/v3.0/"
|
||||
DJGPP_URL="https://github.com/andrewwutw/build-djgpp/releases/download/v3.1/"
|
||||
#DJGPP_URL="https://github.com/andrewwutw/build-djgpp/releases/download/v3.1/"
|
||||
#DJGPP_URL="https://github.com/andrewwutw/build-djgpp/releases/download/v3.1/"
|
||||
DJGPP_URL="https://github.com/andrewwutw/build-djgpp/releases/download/v3.3/"
|
||||
|
||||
if [ "$(uname)" = "Darwin" ]; then
|
||||
#Mac
|
||||
DJGPP_FILE="djgpp-osx-$GCCVER.tar.bz2"
|
||||
@@ -88,6 +91,24 @@ if [ ! -d "pdcurses" ]; then
|
||||
git clone --depth 1 https://github.com/wmcbrine/PDCurses.git pdcurses
|
||||
fi
|
||||
|
||||
if [ ! -d djgpp/djgpp-patch ]; then
|
||||
echo "Getting djlsr205.zip" ;
|
||||
cd djgpp
|
||||
mkdir -p djgpp-patch
|
||||
cd djgpp-patch
|
||||
if [ "$(uname)" = "Darwin" ]; then
|
||||
#Mac
|
||||
curl http://www.mirrorservice.org/sites/ftp.delorie.com/pub/djgpp/current/v2/djlsr205.zip
|
||||
else
|
||||
wget --quiet --no-hsts http://www.mirrorservice.org/sites/ftp.delorie.com/pub/djgpp/current/v2/djlsr205.zip
|
||||
fi
|
||||
ls -l
|
||||
mkdir -p src/libc/go32
|
||||
unzip -p djlsr205.zip src/libc/go32/exceptn.S >src/libc/go32/exceptn.S
|
||||
patch -p0 -l -i ../../../sys/msdos/exceptn.S.patch
|
||||
cd ../../
|
||||
fi
|
||||
|
||||
cd ../
|
||||
|
||||
# Don't fail the build if lua fetch failed because we cannot do anything about it
|
||||
|
||||
Reference in New Issue
Block a user