summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-06-24 13:46:29 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-06-24 13:55:00 (EDT)
commitd5491945f76830cdb9c4fc83099a0567f653f21f (patch)
tree34c2aa9680590eafd7295536cc876099eba56230
parent5305fc0cd0cf041a0eea3819489133111f65d1ea (diff)
build: Build legacy ABI
-rwxr-xr-xbuild11
1 files changed, 9 insertions, 2 deletions
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