diff options
-rw-r--r-- | src/pthreads-w32.mk | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/pthreads-w32.mk b/src/pthreads-w32.mk index 30d5632..1576df5 100644 --- a/src/pthreads-w32.mk +++ b/src/pthreads-w32.mk @@ -18,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/' |