Skip to content

Commit 3dfc7f8

Browse files
committed
Downgrade SDL2 to 2.0.8
1 parent ccdfbdb commit 3dfc7f8

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

ddnet-lib-update.sh

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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
55
wget https://curl.haxx.se/download/curl-7.69.1.tar.gz
66
wget http://download.savannah.gnu.org/releases/freetype/freetype-2.10.1.tar.gz
77
wget http://downloads.xiph.org/releases/ogg/libogg-1.3.4.tar.gz
@@ -18,7 +18,7 @@ cd x86-64
1818
tar xvf ../libogg-1.3.4.tar.gz
1919
tar xvf ../opus-1.3.1.tar.gz
2020
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
2222

2323
cd 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
3535
make -j4
3636
cp .libs/libopusfile.a ..
3737

38-
cd ../SDL2-2.0.12
38+
cd ../SDL2-2.0.8
3939
./configure --enable-input-tslib=no CFLAGS=-fPIC
4040
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
4242
strip -s ../libSDL2-2.0.so.0
4343

4444
cd ../..
@@ -48,7 +48,7 @@ cd x86
4848
tar xvf ../libogg-1.3.4.tar.gz
4949
tar xvf ../opus-1.3.1.tar.gz
5050
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
5252

5353
cd libogg-1.3.4
5454
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/ -
6565
CFLAGS=-m32 LDFLAGS=-m32 make -j4
6666
cp .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
7272
strip -s ../libSDL2-2.0.so.0
7373

7474
cd ../..
7575

7676
mkdir win64
7777
cd win64
78-
tar xvf ../SDL2-2.0.12.tar.gz
78+
tar xvf ../SDL2-2.0.8.tar.gz
7979
tar xvf ../curl-7.69.1.tar.gz
8080
tar xvf ../libogg-1.3.4.tar.gz
8181
tar xvf ../opus-1.3.1.tar.gz
8282
tar xvf ../opusfile-0.11.tar.gz
8383
tar 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
8787
make -j4
8888
cp build/.libs/SDL2.dll build/.libs/libSDL2.dll.a ..
@@ -137,14 +137,14 @@ cd ../..
137137

138138
mkdir win32
139139
cd win32
140-
tar xvf ../SDL2-2.0.12.tar.gz
140+
tar xvf ../SDL2-2.0.8.tar.gz
141141
tar xvf ../curl-7.69.1.tar.gz
142142
tar xvf ../libogg-1.3.4.tar.gz
143143
tar xvf ../opus-1.3.1.tar.gz
144144
tar xvf ../opusfile-0.11.tar.gz
145145
tar 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
149149
make -j4
150150
cp build/.libs/SDL2.dll build/.libs/libSDL2.dll.a ..

0 commit comments

Comments
 (0)