summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-09-19 16:13:50 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-09-19 16:13:50 (EDT)
commit3b8a76374d0737bb107fc8bf7be84f7161c7150c (patch)
treee02f8eee12fafcb7ba512c1b19a45325e543e49c
parente123a24b87d5be2eb2679c69a72336bc87d36e55 (diff)
build: Move and link to libexpect*.so.
-rwxr-xr-xbuild9
1 files changed, 9 insertions, 0 deletions
diff --git a/build b/build
index ac6be53..b6e2e7e 100755
--- a/build
+++ b/build
@@ -3,8 +3,11 @@
include ../source.mk
TCL_V = $$(sed -n 's/Tcl-Version: //p' ../substvars)
+V = $(OPK_SOURCE_VERSION_UPSTREAM)
+V_M = $$(printf '%s\n' '$(V)' | sed 's/\..*$$//')
SONAME = libexpect.so.$(OPK_SOURCE_VERSION_UPSTREAM)
+
nop:
@:
@@ -26,6 +29,12 @@ build: configure
install: build
oh-autoinstall
+ mv dest/usr/lib/$(OPK_HOST_ARCH)/expect$(V)/libexpect$(V).so \
+ dest/usr/lib/$(OPK_HOST_ARCH)/libexpect.so.$(V)
+ ln -sf libexpect.so.$(V) \
+ dest/usr/lib/$(OPK_HOST_ARCH)/libexpect.so.$(V_M)
+ ln -sf libexpect.so.$(V_M) \
+ dest/usr/lib/$(OPK_HOST_ARCH)/libexpect.so
oh-fixperms
oh-strip
oh-installfiles