11# Using a Debian 6 chroot, mingw and osxcross (with compiler-rt built)
22# DO NOT COPY libogg, extract directly... Changing timestamps breaks the build and requires autotools (or cp -a)
33
4- wget http://libsdl.org/release/SDL2-2.0.12 .tar.gz
4+ wget http://libsdl.org/release/SDL2-2.0.8 .tar.gz
55wget https://curl.haxx.se/download/curl-7.69.1.tar.gz
66wget http://download.savannah.gnu.org/releases/freetype/freetype-2.10.1.tar.gz
77wget http://downloads.xiph.org/releases/ogg/libogg-1.3.4.tar.gz
@@ -18,7 +18,7 @@ cd x86-64
1818tar xvf ../libogg-1.3.4.tar.gz
1919tar xvf ../opus-1.3.1.tar.gz
2020tar xvf ../opusfile-0.11.tar.gz
21- tar xvf ../SDL2-2.0.12 .tar.gz
21+ tar xvf ../SDL2-2.0.8 .tar.gz
2222
2323cd libogg-1.3.4
2424./configure CFLAGS=-fPIC
@@ -35,10 +35,10 @@ DEPS_LIBS="-lopus -logg -L/root/x86-64/opus-1.3.1/.libs/ -L/root/x86-64/libogg-1
3535make -j4
3636cp .libs/libopusfile.a ..
3737
38- cd ../SDL2-2.0.12
38+ cd ../SDL2-2.0.8
3939./configure --enable-input-tslib=no CFLAGS=-fPIC
4040CFLAGS=-fPIC make -j4
41- cp build/.libs/libSDL2-2.0.so.0.12 .0 ../libSDL2-2.0.so.0
41+ cp build/.libs/libSDL2-2.0.so.0.8 .0 ../libSDL2-2.0.so.0
4242strip -s ../libSDL2-2.0.so.0
4343
4444cd ../..
4848tar xvf ../libogg-1.3.4.tar.gz
4949tar xvf ../opus-1.3.1.tar.gz
5050tar xvf ../opusfile-0.11.tar.gz
51- tar xvf ../SDL2-2.0.12 .tar.gz
51+ tar xvf ../SDL2-2.0.8 .tar.gz
5252
5353cd libogg-1.3.4
5454CFLAGS=-m32 LDFLAGS=-m32 ./configure
@@ -65,24 +65,24 @@ CFLAGS=-m32 LDFLAGS=-m32 DEPS_LIBS="-lopus -logg -L/root/x86/opus-1.3.1/.libs/ -
6565CFLAGS=-m32 LDFLAGS=-m32 make -j4
6666cp .libs/libopusfile.a ..
6767
68- cd ../SDL2-2.0.12
69- ./configure --enable-input-tslib=no CFLAGS=-fPIC
70- CFLAGS=-fPIC make -j4
71- cp build/.libs/libSDL2-2.0.so.0.12 .0 ../libSDL2-2.0.so.0
68+ cd ../SDL2-2.0.8
69+ ./configure --enable-input-tslib=no CFLAGS=" -fPIC -m32 "
70+ CFLAGS=" -fPIC -m32 " make -j4
71+ cp build/.libs/libSDL2-2.0.so.0.8 .0 ../libSDL2-2.0.so.0
7272strip -s ../libSDL2-2.0.so.0
7373
7474cd ../..
7575
7676mkdir win64
7777cd win64
78- tar xvf ../SDL2-2.0.12 .tar.gz
78+ tar xvf ../SDL2-2.0.8 .tar.gz
7979tar xvf ../curl-7.69.1.tar.gz
8080tar xvf ../libogg-1.3.4.tar.gz
8181tar xvf ../opus-1.3.1.tar.gz
8282tar xvf ../opusfile-0.11.tar.gz
8383tar xvf ../freetype-2.10.1.tar.gz
8484
85- cd SDL2-2.0.12
85+ cd SDL2-2.0.8
8686./configure --host=x86_64-w64-mingw32
8787make -j4
8888cp build/.libs/SDL2.dll build/.libs/libSDL2.dll.a ..
@@ -137,14 +137,14 @@ cd ../..
137137
138138mkdir win32
139139cd win32
140- tar xvf ../SDL2-2.0.12 .tar.gz
140+ tar xvf ../SDL2-2.0.8 .tar.gz
141141tar xvf ../curl-7.69.1.tar.gz
142142tar xvf ../libogg-1.3.4.tar.gz
143143tar xvf ../opus-1.3.1.tar.gz
144144tar xvf ../opusfile-0.11.tar.gz
145145tar xvf ../freetype-2.10.1.tar.gz
146146
147- cd SDL2-2.0.12
147+ cd SDL2-2.0.8
148148./configure --host=i686-w64-mingw32
149149make -j4
150150cp build/.libs/SDL2.dll build/.libs/libSDL2.dll.a ..
0 commit comments