Skip to content

Commit 91a5fce

Browse files
committed
changed pthreads linking approach
1 parent 376dce4 commit 91a5fce

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

Makefile

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@ ifneq (,$(findstring mingw,$(shell ${CXX} -dumpmachine)))
3737
WINDOWS=1
3838
endif
3939

40-
# MinGW32 GCC 4.5 link problem fix
41-
#ifdef WINDOWS
42-
ifneq (,$(findstring 4.5.,$(shell ${CXX} -dumpversion)))
43-
STATIC_CLIB=1
44-
endif
45-
#endif
46-
4740
# Misc. system commands
4841
ifdef WINDOWS
4942
RM = del /Q
@@ -61,7 +54,8 @@ endif
6154
# Non-windows systems need pthread
6255
ifndef WINDOWS
6356
ifndef NOTHREADS
64-
LIBS += -lpthread
57+
LIBS := -pthread ${LIBS}
58+
BASEFLAGS += -pthread
6559
endif
6660
endif
6761

@@ -112,7 +106,7 @@ ifdef RELEASE_BUILD
112106
endif
113107

114108
ifdef STATIC_CLIB
115-
LDFLAGS += -static-libstdc++ -static-libgcc
109+
LDFLAGS += -static-libgcc -static-libstdc++
116110
endif
117111

118112
ifdef DEBUG_BUILD

0 commit comments

Comments
 (0)