diff options
Diffstat (limited to 'src/pthreads-w32.mk')
-rw-r--r-- | src/pthreads-w32.mk | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/pthreads-w32.mk b/src/pthreads-w32.mk index f98c957..1576df5 100644 --- a/src/pthreads-w32.mk +++ b/src/pthreads-w32.mk @@ -8,7 +8,9 @@ $(PKG)_CHECKSUM := 24d40e89c2e66a765733e8c98d6f94500343da86 $(PKG)_SUBDIR := pthreads-w32-$($(PKG)_VERSION)-release $(PKG)_FILE := pthreads-w32-$($(PKG)_VERSION)-release.tar.gz $(PKG)_URL := ftp://sourceware.org/pub/pthreads-win32/$($(PKG)_FILE) -$(PKG)_DEPS := gcc +$(PKG)_DEPS := + +$(PKG)_DEPS_i686-pc-mingw32 := gcc define $(PKG)_UPDATE $(WGET) -q -O- 'ftp://sourceware.org/pub/pthreads-win32/dll-latest/include/pthread.h' | \ @@ -16,9 +18,13 @@ define $(PKG)_UPDATE endef define $(PKG)_BUILD_i686-pc-mingw32 - $(MAKE) -C '$(1)' -j 1 GC-static CROSS='$(TARGET)-' + $(MAKE) -C '$(1)' -j 1 \ + $(if $(BUILD_STATIC),GC-static,GC-inlined) \ + CROSS='$(TARGET)-' $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib' - $(INSTALL) -m644 '$(1)/libpthreadGC2.a' '$(PREFIX)/$(TARGET)/lib/libpthread.a' + $(if $(BUILD_STATIC), \ + $(INSTALL) -m644 '$(1)/libpthreadGC2.a' '$(PREFIX)/$(TARGET)/lib/libpthread.a',\ + $(INSTALL) -m644 '$(1)/pthreadGC2.dll' '$(PREFIX)/$(TARGET)/lib/pthread.dll') $(INSTALL) -d '$(PREFIX)/$(TARGET)/include' $(INSTALL) -m644 '$(1)/pthread.h' '$(PREFIX)/$(TARGET)/include/' $(INSTALL) -m644 '$(1)/sched.h' '$(PREFIX)/$(TARGET)/include/' |