Skip to content

Commit

Permalink
SDL2 on windows, we need to disable some compiler and linker options
Browse files Browse the repository at this point in the history
  • Loading branch information
mywave82 committed Jan 28, 2024
1 parent 29a8b7a commit 6a8d1b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ if test ${enable_output_sdl:=yes} = yes; then
AC_LANG_POP(C)
fi
dnl strip away options that would turn our application from console to a windows GUI application
SDL_CFLAGS=`echo $SDL_CFLAGS |sed 's/-Dmain=SDL_main//g'`
SDL_LIBS=`echo $SDL_LIBS | sed 's/-mwindows/-mconsole/g' 's/-lSDLmain//g' 's/-lSDL2main//g'`
SDL_CFLAGS=`echo $SDL_CFLAGS |sed -e 's/-Dmain=SDL_main//g'`
SDL_LIBS=`echo $SDL_LIBS | sed -e 's/-mwindows/-mconsole/g' -e 's/-lSDLmain//g' -e 's/-lSDL2main//g'`
fi

# ALSA output
Expand Down

0 comments on commit 6a8d1b0

Please sign in to comment.