Mercurial > mxe-octave
changeset 2863:54464afe91f3
Build shared version of ncurses library by converting static library.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 16 Nov 2012 12:55:45 -0500 |
parents | e93d77b61f17 |
children | 071f6f3b11fa |
files | src/ncurses.mk |
diffstat | 1 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ncurses.mk Fri Nov 16 12:56:23 2012 -0500 +++ b/src/ncurses.mk Fri Nov 16 12:55:45 2012 -0500 @@ -16,6 +16,9 @@ head -1 endef +# Building with --enable-shared doesn't seem to work for MinGW systems +# with this version of ncurses, so fake it. + define $(PKG)_BUILD cd '$(1)' && ./configure \ --host='$(TARGET)' \ @@ -30,6 +33,12 @@ --without-manpages \ --enable-pc-files \ --with-normal \ - $(WITH_SHARED_OR_STATIC) + --enable-static --disable-shared $(MAKE) -C '$(1)' -j '$(JOBS)' install + if [ "$(BUILD_SHARED)" = yes ]; then \ + $(MAKE_SHARED_FROM_STATIC) --ar '$(TARGET)-ar' --ld '$(TARGET)-gcc' '$(1)/lib/libncurses.a'; \ + $(INSTALL) -d '$(PREFIX)/$(TARGET)/bin/'; \ + $(INSTALL) -m644 '$(1)/lib/libncurses.dll.a' '$(PREFIX)/$(TARGET)/lib/libncurses.dll.a'; \ + $(INSTALL) -m644 '$(1)/lib/libncurses.dll' '$(PREFIX)/$(TARGET)/bin/libncurses.dll'; \ + fi endef