From f7b4983137ef8f5f35761044b52f0c5619098842 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Fri, 27 Jan 2012 19:41:12 +0100 Subject: [PATCH] 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 --- src/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index b4ecee32..a4350665 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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) -- 2.39.2