aboutsummaryrefslogtreecommitdiff
path: root/packages/OS400/initscript.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packages/OS400/initscript.sh')
-rw-r--r--packages/OS400/initscript.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/OS400/initscript.sh b/packages/OS400/initscript.sh
index f32e8915b..b851e366b 100644
--- a/packages/OS400/initscript.sh
+++ b/packages/OS400/initscript.sh
@@ -20,6 +20,12 @@ TOPDIR=`dirname "${SCRIPTDIR}"`
TOPDIR=`dirname "${TOPDIR}"`
export SCRIPTDIR TOPDIR
+# Extract the SONAME from the library makefile.
+
+SONAME=`sed -e '/^VERSION=/!d' -e 's/^.* \([0-9]*\):.*$/\1/' \
+ < "${TOPDIR}/lib/Makefile.am"`
+export SONAME
+
################################################################################
#
@@ -30,7 +36,7 @@ export SCRIPTDIR TOPDIR
TARGETLIB='CURL' # Target OS/400 program library
STATBNDDIR='CURL_A' # Static binding directory.
DYNBNDDIR='CURL' # Dynamic binding directory.
-SRVPGM='CURL' # Service program.
+SRVPGM="CURL.${SONAME}" # Service program.
TGTCCSID='500' # Target CCSID of objects
DEBUG='*ALL' # Debug level
OPTIMIZE='10' # Optimisation level