mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-13 17:48:10 +08:00
Fix SDL1 build error (Linux & MinGW)
This commit is contained in:
@@ -29,8 +29,6 @@ sed -i 's/^#define ENABLE_IM_EVENT 1$/\/\/#define ENABLE_IM_EVENT 1/g' vs/sdl/in
|
||||
|
||||
# prefer to compile against our own copy of SDL 1.x
|
||||
echo "Compiling our internal SDL 1.x"
|
||||
cp vs/sdl/build-dosbox.sh vs/sdl/build-dosbox.bak
|
||||
sed -i 's/^make -j3/sed -i '"'"'s\/\^CFLAGS\.\*\/CFLAGS = -g -O2 -Wno-error=incompatible-pointer-types\/g'"'"' \.\/Makefile\nmake -j3/g' vs/sdl/build-dosbox.sh
|
||||
(cd vs/sdl && ./build-dosbox.sh) || exit 1
|
||||
|
||||
# prefer to compile against our own copy of SDLnet 1.x
|
||||
@@ -39,9 +37,6 @@ echo "Compiling our internal SDLnet 1.x"
|
||||
|
||||
sed -i 's/^\/\/#define ENABLE_IM_EVENT 1$/#define ENABLE_IM_EVENT 1/g' vs/sdl/include/SDL_platform.h
|
||||
(cd vs/sdl && ./build-dosbox.sh) || exit 1
|
||||
rm vs/sdl/build-dosbox.sh
|
||||
mv vs/sdl/build-dosbox.bak vs/sdl/build-dosbox.sh
|
||||
chmod +x vs/sdl/build-dosbox.sh
|
||||
|
||||
# NTS: MinGW provides zlib for us
|
||||
if false; then
|
||||
|
@@ -47,6 +47,9 @@ mkdir -p linux-build || exit 1
|
||||
mkdir -p linux-build/build || exit 1
|
||||
mkdir -p linux-build/include || exit 1
|
||||
|
||||
#Don't treat incompatible-pointer-types warnings as errors (gcc-14)
|
||||
sed -i 's/^CFLAGS\(.*\)/CFLAGS\1 -Wno-error=incompatible-pointer-types/g' ./Makefile
|
||||
|
||||
make -j3 || exit 1
|
||||
make install || exit 1 # will install into ./linux-host
|
||||
|
||||
|
Reference in New Issue
Block a user