home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / hp / 9826 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  1.5 KB

  1. 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
  2. From: mjs@hpfcso.FC.HP.COM (Marc Sabatella)
  3. Newsgroups: comp.sys.hp
  4. Subject: Re: Linker selection of symbols from shared-libs
  5. Message-ID: <7371273@hpfcso.FC.HP.COM>
  6. Date: 28 Aug 92 19:45:50 GMT
  7. References: <3270@tivoli.UUCP>
  8. Organization: Hewlett-Packard, Fort Collins, CO, USA
  9. Lines: 22
  10.  
  11. In comp.sys.hp, franl@centerline.com (Fran Litterio) writes:
  12.  
  13. > Sorry.  Ignore my previous posting.  The -L option won't help you.
  14. > The cc(1) driver should invoke ld(1) in such a way that libc.sl (or
  15. > libc.a) is scanned last when looking for a defining instance of a
  16. > symbol).  You should not have to do anything to get the behavior you
  17. > want.  Try invoking ld(1) directly, or try giving the "-Wl,-a,archive"
  18. > option to cc(1) which will force ld(1) to use archive libraries
  19. > instead.
  20.  
  21. Sorry, Fran, this one's off the mark, too.  The behavior I explained in a
  22. previous note (synopsis: define "_write" instead of / in addition to "write")
  23. is the same regardless of whether you use shared of archive libraries - it was
  24. introduced at 7.0, before we had even begun serious investigation into shared
  25. libraries.  Neither invoking ld(1) directly nor using "-a archive" will change
  26. anything.
  27.  
  28. --------------
  29. Marc Sabatella (marc@hpmonk.fc.hp.com)
  30. Disclaimers:
  31.     2 + 2 = 3, for suitably small values of 2
  32.     Bill (H.) and Dave (P.) may not always agree with me
  33.