summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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