Mercurial > hg > mxe
changeset 3078:81e4b37912bf stable
build shared libs from static for qhull
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 04 Dec 2012 10:47:21 -0500 |
parents | 790a09af0245 |
children | 23a535663fce b4e625571bf6 |
files | src/qhull.mk |
diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/qhull.mk +++ b/src/qhull.mk @@ -20,9 +20,16 @@ cd '$(1)/.build' && '$(1)/configure' \ --host='$(TARGET)' \ --build="`config.guess`" \ - $(ENABLE_SHARED_DISABLE_STATIC) \ + --enable-static --disable-shared \ --prefix='$(PREFIX)/$(TARGET)' $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install - rm -f $(PREFIX)/$(TARGET)/lib/libqhull.la + if [ $(BUILD_SHARED) = yes ]; then \ + $(INSTALL) -d '$(PREFIX)/$(TARGET)/bin'; \ + $(MAKE_SHARED_FROM_STATIC) --ar '$(TARGET)-ar' --ld '$(TARGET)-g++' '$(PREFIX)/$(TARGET)/lib/libqhull.a'; \ + $(INSTALL) -m755 '$(PREFIX)/$(TARGET)/lib/libqhull.dll.a' '$(PREFIX)/$(TARGET)/lib/libqhull.dll.a'; \ + $(INSTALL) -m755 '$(PREFIX)/$(TARGET)/lib/libqhull.dll' '$(PREFIX)/$(TARGET)/bin/libqhull.dll'; \ + rm -f '$(PREFIX)/$(TARGET)/lib/libqhull.dll'; \ + rm -f '$(PREFIX)/$(TARGET)/lib/libqhull.la'; \ + fi endef