changeset 3975:9c875e7a344a

pthread: only compile if cross mingw * src/pthreads.mk: check if system=mingw and native=no
author John Donoghue
date Tue, 16 Jun 2015 12:23:05 -0400
parents a6b0b01511ba
children 70809bcae59f
files src/pthreads.mk
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/pthreads.mk	Tue Jun 16 12:18:59 2015 -0400
+++ b/src/pthreads.mk	Tue Jun 16 12:23:05 2015 -0400
@@ -14,7 +14,7 @@
     echo $(mingw-w64_VERSION)
 endef
 
-ifeq ($(MXE_SYSTEM),mingw)
+ifeq ($(MXE_SYSTEM)$(MXE_NATIVE_BUILD),mingwno)
 define $(PKG)_BUILD
     cd '$(1)/mingw-w64-libraries/winpthreads' && ./configure \
         $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \