Path: utzoo!utgpu!watserv1!watmath!att!att!tut.cis.ohio-state.edu!cs.utexas.edu!wuarchive!sdd.hp.com!hp-pcd!hpcvlx!tomg From: tomg@hpcvlx.cv.hp.com (Thomas J. Gilg) Newsgroups: comp.sys.apollo Subject: Re: XllR4 shared libraries. Message-ID: <101020011@hpcvlx.cv.hp.com> Date: 23 Nov 90 22:55:32 GMT References: <1801@kuling.UUCP> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 46 > I would be very glad if someone of those people could tell > me "how to do it". Generate libX11.a in the usual manner with the additional flag "-W0,-pic". Then run the enclosed script to convert the position-independent-code verion of libX11.a to a shared library; for the upcoming 2nd Qtr. 91 PSK, we'll name the beast /lib/x11lib.r4 The current R3 version is /lib/x11lib Query: When you folks link an X application, do you let the "Globally Known Table" resolve your entry points (assumes /etc/sys.conf was setup), or do you utilize the link option -A inlib,/lib/whatever to bind your executable to a named shared library ? Thomas Gilg tomg@cv.hp.com #!/bin/sh ############################################################################### # # $Header: make_ap_shlib,v 1.1 90/11/13 17:11:34 xbuild Exp $ # # 11/12/90 -- Thomas Gilg # # Takes an archived library who's *.o files were compiled with position # independent code and converts the whole works to a shared library. # # Depending on the library, the "-inlib " option might be needed. # if [ $# -lt 2 ] then echo "" echo "usage : `basename $0` [...]" echo "" exit 0 fi arlib=$1 shlib=$2 shift shift /com/bind -allocbss -b $shlib -allmark $arlib -include -all $* exit 0