home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / hp / 9812 < prev    next >
Encoding:
Text File  |  1992-08-29  |  1.2 KB  |  36 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!centerline!franl
  3. From: franl@centerline.com (Fran Litterio)
  4. Subject: Re: Linker selection of symbols from shared-libs
  5. In-Reply-To: stuart@TIVOLI.COM's message of 26 Aug 92 17:23:10 GMT
  6. Message-ID: <FRANL.92Aug28132512@draco.centerline.com>
  7. Sender: news@centerline.com
  8. Nntp-Posting-Host: draco
  9. Organization: CenterLine Software, Inc.
  10. References: <3270@tivoli.UUCP>
  11. Date: Fri, 28 Aug 1992 18:25:12 GMT
  12. Lines: 22
  13.  
  14. stuart@TIVOLI.COM (Stuart Jarriel) writes:
  15.  
  16. > Lets say I have a shared lib, libmine.sl, and there is a function in
  17. > libmine.sl called write().
  18. > So I build my program with:
  19. > cc program.c -o program -lmine
  20. > will program use the write in libc.sl or in libmine.sl?
  21. > (actually, the answer is libc.sl)
  22. > Can I force the opposite behavior, so that my library can overwrite the
  23. > symbols provided in libc.sl?
  24.  
  25. You should be able to use the -L option to make ld(1) look in the
  26. directory containing libmine.sl before it looks in /lib and /usr/lib.
  27. --
  28. franl@centerline.com   || Fran Litterio                               
  29. uunet!centerline!franl || CenterLine Software R&D                     
  30. 617-498-3255           || 10 Fawcett St, Cambridge, MA, USA 02138-1110
  31.