Ignore:
Timestamp:
Jul 19, 2012, 7:07:37 PM (7 years ago)
Author:
sam
Message:

build: add libSDLmain.a binaries for GUI MinGW builds; the provided static
libraries only work with the Visual Studio runtime.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r1647 r1653  
    126126dnl  Are we building using MinGW?
    127127LIBS_save="$LIBS"
    128 LIBS="$LIBS -mwindows"
    129 AC_MSG_CHECKING(for -mwindows)
     128LIBS="$LIBS -mwindows -mwin32"
     129AC_MSG_CHECKING(for -mwindows -mwin32)
    130130AC_TRY_LINK([], [],
    131131 [AC_MSG_RESULT(yes)
    132   LOL_LIBS="${LOL_LIBS} -mwindows"],
     132  CXXFLAGS="${CXXFLAGS} -mwindows -mwin32"
     133  LOL_LIBS="${LOL_LIBS} -uWinMain -u_WinMain@16"],
    133134 [AC_MSG_RESULT(no)])
    134135LIBS="$LIBS_save"
     
    264265 [SDL_LIBS="${SDL_LIBS} -lSDL"],
    265266 [ac_cv_my_have_sdl="no"])
     267AC_CHECK_LIB(SDLmain, main,
     268 [SDL_LIBS="${SDL_LIBS} -lSDLmain -lSDL"])
    266269AC_CHECK_LIB(SDL_mixer, main,
    267270 [SDLMIXER_LIBS="${SDLMIXER_LIBS} -lSDL_mixer"],
Note: See TracChangeset for help on using the changeset viewer.