home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!sdd.hp.com!hpscdc!cupnews0.cup.hp.com!hppad.waterloo.hp.com!hppad!hpfcso!mjs
- From: mjs@hpfcso.FC.HP.COM (Marc Sabatella)
- Newsgroups: comp.sys.hp
- Subject: Re: Linker selection of symbols from shared-libs
- Message-ID: <7371273@hpfcso.FC.HP.COM>
- Date: 28 Aug 92 19:45:50 GMT
- References: <3270@tivoli.UUCP>
- Organization: Hewlett-Packard, Fort Collins, CO, USA
- Lines: 22
-
- In comp.sys.hp, franl@centerline.com (Fran Litterio) writes:
-
- > Sorry. Ignore my previous posting. The -L option won't help you.
- > The cc(1) driver should invoke ld(1) in such a way that libc.sl (or
- > libc.a) is scanned last when looking for a defining instance of a
- > symbol). You should not have to do anything to get the behavior you
- > want. Try invoking ld(1) directly, or try giving the "-Wl,-a,archive"
- > option to cc(1) which will force ld(1) to use archive libraries
- > instead.
-
- Sorry, Fran, this one's off the mark, too. The behavior I explained in a
- previous note (synopsis: define "_write" instead of / in addition to "write")
- is the same regardless of whether you use shared of archive libraries - it was
- introduced at 7.0, before we had even begun serious investigation into shared
- libraries. Neither invoking ld(1) directly nor using "-a archive" will change
- anything.
-
- --------------
- Marc Sabatella (marc@hpmonk.fc.hp.com)
- Disclaimers:
- 2 + 2 = 3, for suitably small values of 2
- Bill (H.) and Dave (P.) may not always agree with me
-