1
1
# Using a Debian 6 chroot, mingw and osxcross (with compiler-rt built)
2
2
# DO NOT COPY libogg, extract directly... Changing timestamps breaks the build and requires autotools (or cp -a)
3
3
4
- wget http://libsdl.org/release/SDL2-2.0.12 .tar.gz
4
+ wget http://libsdl.org/release/SDL2-2.0.8 .tar.gz
5
5
wget https://curl.haxx.se/download/curl-7.69.1.tar.gz
6
6
wget http://download.savannah.gnu.org/releases/freetype/freetype-2.10.1.tar.gz
7
7
wget http://downloads.xiph.org/releases/ogg/libogg-1.3.4.tar.gz
@@ -18,7 +18,7 @@ cd x86-64
18
18
tar xvf ../libogg-1.3.4.tar.gz
19
19
tar xvf ../opus-1.3.1.tar.gz
20
20
tar xvf ../opusfile-0.11.tar.gz
21
- tar xvf ../SDL2-2.0.12 .tar.gz
21
+ tar xvf ../SDL2-2.0.8 .tar.gz
22
22
23
23
cd libogg-1.3.4
24
24
./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
35
35
make -j4
36
36
cp .libs/libopusfile.a ..
37
37
38
- cd ../SDL2-2.0.12
38
+ cd ../SDL2-2.0.8
39
39
./configure --enable-input-tslib=no CFLAGS=-fPIC
40
40
CFLAGS=-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
42
42
strip -s ../libSDL2-2.0.so.0
43
43
44
44
cd ../..
48
48
tar xvf ../libogg-1.3.4.tar.gz
49
49
tar xvf ../opus-1.3.1.tar.gz
50
50
tar xvf ../opusfile-0.11.tar.gz
51
- tar xvf ../SDL2-2.0.12 .tar.gz
51
+ tar xvf ../SDL2-2.0.8 .tar.gz
52
52
53
53
cd libogg-1.3.4
54
54
CFLAGS=-m32 LDFLAGS=-m32 ./configure
@@ -65,24 +65,24 @@ CFLAGS=-m32 LDFLAGS=-m32 DEPS_LIBS="-lopus -logg -L/root/x86/opus-1.3.1/.libs/ -
65
65
CFLAGS=-m32 LDFLAGS=-m32 make -j4
66
66
cp .libs/libopusfile.a ..
67
67
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
72
72
strip -s ../libSDL2-2.0.so.0
73
73
74
74
cd ../..
75
75
76
76
mkdir win64
77
77
cd win64
78
- tar xvf ../SDL2-2.0.12 .tar.gz
78
+ tar xvf ../SDL2-2.0.8 .tar.gz
79
79
tar xvf ../curl-7.69.1.tar.gz
80
80
tar xvf ../libogg-1.3.4.tar.gz
81
81
tar xvf ../opus-1.3.1.tar.gz
82
82
tar xvf ../opusfile-0.11.tar.gz
83
83
tar xvf ../freetype-2.10.1.tar.gz
84
84
85
- cd SDL2-2.0.12
85
+ cd SDL2-2.0.8
86
86
./configure --host=x86_64-w64-mingw32
87
87
make -j4
88
88
cp build/.libs/SDL2.dll build/.libs/libSDL2.dll.a ..
@@ -137,14 +137,14 @@ cd ../..
137
137
138
138
mkdir win32
139
139
cd win32
140
- tar xvf ../SDL2-2.0.12 .tar.gz
140
+ tar xvf ../SDL2-2.0.8 .tar.gz
141
141
tar xvf ../curl-7.69.1.tar.gz
142
142
tar xvf ../libogg-1.3.4.tar.gz
143
143
tar xvf ../opus-1.3.1.tar.gz
144
144
tar xvf ../opusfile-0.11.tar.gz
145
145
tar xvf ../freetype-2.10.1.tar.gz
146
146
147
- cd SDL2-2.0.12
147
+ cd SDL2-2.0.8
148
148
./configure --host=i686-w64-mingw32
149
149
make -j4
150
150
cp build/.libs/SDL2.dll build/.libs/libSDL2.dll.a ..
0 commit comments