home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!emory!swrinde!sdd.hp.com!hp-col!hpfcnfs.sde.hp.com!mjs
- From: mjs@fc.hp.com (Marc Sabatella)
- Newsgroups: comp.sys.hp
- Subject: Re: Where is regcmp on HP 9000/750?
- Message-ID: <BxIp05.89t@fc.sde.hp.com>
- Date: 10 Nov 92 20:31:16 GMT
- Article-I.D.: fc.BxIp05.89t
- References: <40678@sdcc12.ucsd.edu>
- Sender: news@fc.sde.hp.com (Notes Administrator)
- Reply-To: marc@hpmonk.fc.hp.com
- Organization: Hewlett-Packard Company
- Lines: 47
- X-Newsreader: TIN [version 1.1.4 PL6]
-
- richard g. adair (xm9@sdcc12.ucsd.edu) wrote:
-
- : The number of UNIX linking options for some of the X programs are
- : getting a bit silly. A computer should be able to do these things
- : for you. How about changing the linker to search an index, instead
- : of the direct library files. Something like:
- :
- : {
- : Loop on unresolved functions
- : Linker needs sin finction
- : {
- : Search /usr/lib/library.index
- : Hmmm, sin is in -lm
- : Insert -lm automatically into path
- : Search for dependencies and auto insert required libraries
- : Warn user "#include <math.h>" not in source
- : }
- : }
- :
- : Sort libraries by order dependencies
- : Echo inserted -l options to user
-
- Domain does something very similar to this, and OSF (remember them :-)
- considered such a strategy as well. The idea actually goes back to Multics.
-
- If there were some standard for doing this, people would likely implement it,
- as it is a reasonably good idea. As it is, though, everyone would have their
- own variations on this algorithm - especially the maintenance and format of
- your "library.index" file). If everyone were to implement it the way they say
- fit, it would only exacerbate the problem of linking Motif applications rather
- than fix it.
-
- From a technical perspective, this mechanism would need an escape clause - a
- way to explicitly set the search order when you wanted to.
-
- --
- Amendment 2 - Shame On You, Colorado
- --
- Marc Sabatella
- marc@hpmonk.fc.hp.com
- --
- a disgusted resident of the first state in history of the union
- to enact a constitutional amendment that explicitly legalizes discrimination
- against a particular minority
- --
- All opinions expressed herein are my personal ones
- and do not necessarily reflect those of HP or anyone else.
-