diff options
author | Tony Theodore <tonyt@logyst.com> | 2013-05-23 14:35:29 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2013-06-01 12:28:02 (GMT) |
commit | b974ef08d8b4fc555259eb49c9e34ef69c411948 (patch) | |
tree | 3d87088e9b6469153e5f33e9fc035410e9d08c3b /src/winpthreads.mk | |
parent | 95e37fbe7e528bc61e324bde2608046db66521c3 (diff) | |
download | mxe-b974ef08d8b4fc555259eb49c9e34ef69c411948.zip mxe-b974ef08d8b4fc555259eb49c9e34ef69c411948.tar.gz mxe-b974ef08d8b4fc555259eb49c9e34ef69c411948.tar.bz2 |
add mingw-w64 runtime and pthreads implementation, update related toolchain files
Diffstat (limited to 'src/winpthreads.mk')
-rw-r--r-- | src/winpthreads.mk | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/winpthreads.mk b/src/winpthreads.mk new file mode 100644 index 0000000..ba2d132 --- /dev/null +++ b/src/winpthreads.mk @@ -0,0 +1,28 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := winpthreads +$(PKG)_IGNORE = $(mingw-w64_IGNORE) +$(PKG)_CHECKSUM = $(mingw-w64_CHECKSUM) +$(PKG)_SUBDIR = $(mingw-w64_SUBDIR) +$(PKG)_FILE = $(mingw-w64_FILE) +$(PKG)_URL = $(mingw-w64_URL) +$(PKG)_DEPS := gcc mingw-w64 + +define $(PKG)_UPDATE + echo $(mingw-w64_VERSION) +endef + +define $(PKG)_BUILD_mingw-w64 + cd '$(1)/mingw-w64-libraries/winpthreads' && ./configure \ + --host='$(TARGET)' \ + --prefix='$(PREFIX)/$(TARGET)' \ + --enable-static \ + --disable-shared + $(MAKE) -C '$(1)/mingw-w64-libraries/winpthreads' -j '$(JOBS)' install + + $(PTHREADS_TEST) +endef + +$(PKG)_BUILD_x86_64-w64-mingw32 = $($(PKG)_BUILD_mingw-w64) +$(PKG)_BUILD_i686-w64-mingw32 = $($(PKG)_BUILD_mingw-w64) |