Mercurial > hg > mxe-octave-anirudha
changeset 2889:426bca8b039e
shared libs for bzip2
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 29 Nov 2012 10:59:34 -0500 |
parents | 8d89eccf60a6 |
children | 152e3e693568 |
files | src/bzip2.mk |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/bzip2.mk +++ b/src/bzip2.mk @@ -28,4 +28,14 @@ $(INSTALL) -m644 '$(1)/libbz2.a' '$(PREFIX)/$(TARGET)/lib/' $(INSTALL) -d '$(PREFIX)/$(TARGET)/include' $(INSTALL) -m644 '$(1)/bzlib.h' '$(PREFIX)/$(TARGET)/include/' + + if [ $(BUILD_SHARED) = yes ]; then \ + $(INSTALL) -d '$(PREFIX)/$(TARGET)/bin'; \ + $(MAKE_SHARED_FROM_STATIC) --ar '$(TARGET)-ar' --ld '$(TARGET)-gcc' '$(PREFIX)/$(TARGET)/lib/libbz2.a'; \ + $(INSTALL) -m755 '$(PREFIX)/$(TARGET)/lib/libbz2.dll.a' '$(PREFIX)/$(TARGET)/lib/libbz2.dll.a'; \ + $(INSTALL) -m755 '$(PREFIX)/$(TARGET)/lib/libbz2.dll' '$(PREFIX)/$(TARGET)/bin/libbz2.dll'; \ + rm -f '$(PREFIX)/$(TARGET)/lib/libbz2.dll'; \ + rm -f '$(PREFIX)/$(TARGET)/lib/libbz2.la'; \ + fi + endef