1
0
Fork 0

Do not require -lpthread when linking in mingw

With this we should compeltely remove the need
of installing third party POSIX threads library
when compiling with mingw-gcc under Windows.

Spotted by Trung Tu.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
sf_2.3.1_base
Marco Costalba 2012-01-27 19:41:12 +01:00
parent eeef654cd7
commit f7b4983137
1 changed files with 6 additions and 1 deletions

View File

@ -243,7 +243,12 @@ ifeq ($(os),osx)
endif
### 3.3 General linker settings
LDFLAGS = -lpthread $(EXTRALDFLAGS)
LDFLAGS = $(EXTRALDFLAGS)
### On mingw use Windows threads, otherwise POSIX
ifneq ($(comp),mingw)
LDFLAGS += -lpthread
endif
ifeq ($(os),osx)
LDFLAGS += -arch $(arch)