Mercurial > hg > mxe-octave-anirudha
changeset 2886:b11464811f7f
build shared library for pthreads
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 28 Nov 2012 20:16:38 -0500 |
parents | 4e8c0723e3d2 |
children | 7811f0697a7a |
files | src/pthreads.mk |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/pthreads.mk +++ b/src/pthreads.mk @@ -18,6 +18,16 @@ $(MAKE) -C '$(1)' -j 1 GC-static CROSS='$(TARGET)-' $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib' $(INSTALL) -m644 '$(1)/libpthreadGC2.a' '$(PREFIX)/$(TARGET)/lib/libpthread.a' + + if [ $(BUILD_SHARED) = yes ]; then \ + $(MAKE_SHARED_FROM_STATIC) --ar '$(TARGET)-ar' --ld '$(TARGET)-gcc' '$(PREFIX)/$(TARGET)/lib/libpthread.a'; \ + $(INSTALL) -d '$(PREFIX)/$(TARGET)/bin'; \ + $(INSTALL) -m755 '$(PREFIX)/$(TARGET)/lib/libpthread.dll.a' '$(PREFIX)/$(TARGET)/lib/libpthread.dll.a'; \ + $(INSTALL) -m755 '$(PREFIX)/$(TARGET)/lib/libpthread.dll' '$(PREFIX)/$(TARGET)/bin/libpthread.dll'; \ + rm -f '$(PREFIX)/$(TARGET)/lib/libpthread.dll'; \ + rm -f '$(PREFIX)/$(TARGET)/lib/libpthread.la'; \ + fi + $(INSTALL) -d '$(PREFIX)/$(TARGET)/include' $(INSTALL) -m644 '$(1)/pthread.h' '$(PREFIX)/$(TARGET)/include/' $(INSTALL) -m644 '$(1)/sched.h' '$(PREFIX)/$(TARGET)/include/'