The -mthreads option is required for thread-safe exception handling with

MinGW.
This commit is contained in:
chris 2004-07-21 06:46:22 +00:00
parent 0474ac3d39
commit 5c5da64d6b
2 changed files with 4 additions and 2 deletions

View File

@ -53,6 +53,8 @@ case $host in
LIBS="$LIBS -lsocket -lnsl -lpthread"
;;
*-*-mingw32*)
CXXFLAGS="$CXXFLAGS -mthreads"
LDFLAGS="$LDFLAGS -mthreads"
LIBS="$LIBS -lws2_32"
;;
esac

View File

@ -2,8 +2,8 @@ ifndef BOOSTDIR
BOOSTDIR = ../../boost_1_31_0
endif
CXXFLAGS = -g -O3 -Wall -I../include -I$(BOOSTDIR)
LDFLAGS = -g -O3
CXXFLAGS = -g -O3 -Wall -mthreads -I../include -I$(BOOSTDIR)
LDFLAGS = -g -O3 -mthreads
LIBS = -lws2_32
TEST_EXES = \