home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / gcc / help / 2984 next >
Encoding:
Internet Message Format  |  1993-01-21  |  1.5 KB

  1. Path: sparky!uunet!cs.utexas.edu!usc!news.service.uci.edu!ucivax!ucla-cs!ucla-mic!unixg.ubc.ca!keith
  2. From: keith@msmri.med.ubc.ca
  3. Newsgroups: gnu.gcc.help
  4. Subject: Re: Setting default library for gcc
  5. Date: 21 Jan 1993 05:08:54 GMT
  6. Organization: University of British Columbia, Vancouver, B.C., Canada
  7. Lines: 31
  8. Message-ID: <1jlb56INNbo1@iskut.ucs.ubc.ca>
  9. References: <1jhnvaINN2p8@iskut.ucs.ubc.ca>
  10. NNTP-Posting-Host: msmri.med.ubc.ca
  11.  
  12. In article <1jhnvaINN2p8@iskut.ucs.ubc.ca> keith@msmri.med.ubc.ca writes:
  13. >The gcc FAQ recommends using your host C library and include files.
  14. >How do you set the default path in gcc to them?  I think this should
  15. >be included in the FAQ and the INSTALL file in gcc.
  16. >
  17.  
  18. I should explain myself more clearly.  I am installing gcc 2.3.3 on
  19. a SUN os 4.1.1 in a directory other than /usr/lib.  Lets call the 
  20. directory /foo.  This was complished by editing the Makefile generated
  21. by configure so prefix = /foo.  The problem this causes is that gcc then
  22. looks for libc.a in /foo/lib according to the -v option on gcc.  -v does
  23. not tell me (at least I cannot see it) where the include files are
  24. looked for.
  25.  
  26. I realize that I can instruct gcc to search the host lib and include
  27. file by the -L and -I options. i.e.
  28.  
  29.     gcc -L/usr/lib -I/usr/include
  30.  
  31. but I would prefer to have /usr/lib and /usr/include
  32. as the default paths used by the gcc compiler
  33. rather than /foo/lib and /foo/include.  How do I go about modifying the
  34. Makefile so this is the case?
  35.  
  36. Thanks in advance.
  37.  
  38. Keith S Cover
  39. Physics, UBC
  40. keith@msmri.med.ubc.ca
  41.  
  42.  
  43.