The -mthreads option is required for thread-safe exception handling with
MinGW.
This commit is contained in:
parent
0474ac3d39
commit
5c5da64d6b
@ -53,6 +53,8 @@ case $host in
|
||||
LIBS="$LIBS -lsocket -lnsl -lpthread"
|
||||
;;
|
||||
*-*-mingw32*)
|
||||
CXXFLAGS="$CXXFLAGS -mthreads"
|
||||
LDFLAGS="$LDFLAGS -mthreads"
|
||||
LIBS="$LIBS -lws2_32"
|
||||
;;
|
||||
esac
|
||||
|
@ -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 = \
|
||||
|
Loading…
Reference in New Issue
Block a user