From d5491945f76830cdb9c4fc83099a0567f653f21f Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 24 Jun 2019 13:46:29 -0400 Subject: build: Build legacy ABI --- diff --git a/build b/build index 76ad36c..a2b854f 100755 --- a/build +++ b/build @@ -3,6 +3,7 @@ include ../source.mk builddir = obj_$$(printf '%s' $@ | sed 's/^[^_]*_//') +abi_ver = $$(printf '%s\n' '$(OPK_SOURCE_VERSION_UPSTREAM)' | sed 's/[.].*//') common_opts = \ --without-ada \ --without-tests \ @@ -25,18 +26,24 @@ build_ncursesw_opts = $(common_opts) \ --without-progs \ --disable-overwrite \ --enable-widec +build_ncurses_legacy_opts = $(build_ncurses_opts) \ + --with-abi-version=$$(($(abi_ver) - 1)) +build_ncursesw_legacy_opts = $(build_ncurses_opts) \ + --with-abi-version=$$(($(abi_ver) - 1)) nop: @: -build_ncurses build_ncursesw: +build_ncurses build_ncursesw build_ncurses_legacy build_ncursesw_legacy: oh-autoconfigure -B $(builddir) -- $($@_opts) oh-autobuild -B $(builddir) touch $@ -build: build_ncurses build_ncursesw +build: build_ncurses build_ncursesw build_ncurses_legacy build_ncursesw_legacy install: build + (cd obj_ncurses_legacy && make install.libs) + (cd obj_ncursesw_legacy && make install.libs) (cd obj_ncurses && make install) (cd obj_ncursesw && make install.libs) rm dest/usr/lib/$(OPK_HOST_ARCH)/*.a -- cgit v0.9.1