Configuring and Managing MPE/iX Internet Services (August 2002)

Chapter 9
HP WebWise MPE/iX Secure Web Server
Shared libraries
173
Here is a POSIX script that shows how libraries might be set up programmatically. It uses hw.o as the
archive library, hw.a:
shell/iX> cat xlbuild.sh
#!/bin/sh
#
# set the location of Apache
AP=/APACHE/PUB
#
# create the old libraries
rm -f ${AP}/XLC ${AP}/XLM ${AP}/XLHW
#
# copy the latest versions
cp /lib/libc.sl ${AP}/XLC
cp /lib/libm.sl ${AP}/XLM
#
#create a custom XL
callci "xeq linkedit.pub.sys buildxl xl=${AP}/XLHW"
callci "xeq linkedit.pub.sys addxl from=${AP}/hw/hw.a;to=${AP}/XLHW;share;merge"
#
# remove fragmentation and minimize the internal tables
callci "xeq linkedit.pub.sys cleanxl ${AP}/XLHW;compact"
#
# Relink Apache with the new NMXL list
callci "xeq linkedit.pub.sys altprog ${AP}/HTTPD;cap=ia,ba,ph,pm;xl=\"${AP}/XLHW,${AP}/XLM,${AP}/XLC\""