mirror of https://github.com/mpv-player/mpv
`sdl-config --libs` under mingw32 will give -lmingw32, which leads to
multiple definition of main and causes subsequent feature checks to fail. patch by Zuxy Meng, zuxy.meng gmail com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21377 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
b138036098
commit
6add846d7c
|
@ -4586,7 +4586,7 @@ if test "$_sdl" = yes ; then
|
|||
_libs_mplayer="$_libs_mplayer `$_sdlconfig --libs | cut -d " " -f 1,4,6 | sed s/no-cygwin/cygwin/`"
|
||||
_inc_extra="$_inc_extra `$_sdlconfig --cflags | cut -d " " -f 1,5,6 | sed s/no-cygwin/cygwin/`"
|
||||
elif mingw32 ; then
|
||||
_libs_mplayer="$_libs_mplayer `$_sdlconfig --libs | sed s/-mwindows//`"
|
||||
_libs_mplayer="$_libs_mplayer `$_sdlconfig --libs | sed -e s/-mwindows// -e s/-lmingw32//`"
|
||||
_inc_extra="$_inc_extra `$_sdlconfig --cflags | sed s/-Dmain=SDL_main//`"
|
||||
else
|
||||
_libs_mplayer="$_libs_mplayer `$_sdlconfig --libs`"
|
||||
|
|
Loading…
Reference in New Issue