summaryrefslogtreecommitdiffstats
path: root/src/pthreads-w32.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2014-02-10 07:33:58 (GMT)
committerTony Theodore <tonyt@logyst.com>2014-02-10 07:33:58 (GMT)
commit8a3aac1099e220107fcd6f52461d9ee0af8b362e (patch)
treea0af60bfcc4f8f94605639924c62f33900de74d1 /src/pthreads-w32.mk
parentc950f3635caa9b2dd562286baa51138e6e30dca1 (diff)
downloadmxe-8a3aac1099e220107fcd6f52461d9ee0af8b362e.zip
mxe-8a3aac1099e220107fcd6f52461d9ee0af8b362e.tar.gz
mxe-8a3aac1099e220107fcd6f52461d9ee0af8b362e.tar.bz2
package pthreads-w32: enable shared build
Diffstat (limited to 'src/pthreads-w32.mk')
-rw-r--r--src/pthreads-w32.mk8
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/'