Article View: gnu.gcc.help
Article #843Re: Setting default library for gcc
From: keith
Date: Thu, 21 Jan 1993 05:08
Date: Thu, 21 Jan 1993 05:08
29 lines
1590 bytes
1590 bytes
In article <1jhnvaINN2p8@iskut.ucs.ubc.ca> keith@msmri.med.ubc.ca writes:
>The gcc FAQ recommends using your host C library and include files.
>How do you set the default path in gcc to them? I think this should
>be included in the FAQ and the INSTALL file in gcc.
>
I should explain myself more clearly. I am installing gcc 2.3.3 on
a SUN os 4.1.1 in a directory other than /usr/lib. Lets call the
directory /foo. This was complished by editing the Makefile generated
by configure so prefix = /foo. The problem this causes is that gcc then
looks for libc.a in /foo/lib according to the -v option on gcc. -v does
not tell me (at least I cannot see it) where the include files are
looked for.
I realize that I can instruct gcc to search the host lib and include
file by the -L and -I options. i.e.
gcc -L/usr/lib -I/usr/include
but I would prefer to have /usr/lib and /usr/include
as the default paths used by the gcc compiler
rather than /foo/lib and /foo/include. How do I go about modifying the
Makefile so this is the case?
Thanks in advance.
Keith S Cover
Physics, UBC
keith@msmri.med.ubc.ca
Technical Details
Message-ID:
<1jlb56INNbo1@iskut.ucs.ubc.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!usc!news.service.uci.edu!ucivax!ucla-cs!ucla-mic!unixg.ubc.ca!keithReferences:
<1jhnvaINN2p8@iskut.ucs.ubc.ca>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!usc!news.service.uci.edu!ucivax!ucla-cs!ucla-mic!unixg.ubc.ca!keith From: keith@msmri.med.ubc.ca Newsgroups: gnu.gcc.help Subject: Re: Setting default library for gcc Date: 21 Jan 1993 05:08:54 GMT Organization: University of British Columbia, Vancouver, B.C., Canada Lines: 31 Message-ID: <1jlb56INNbo1@iskut.ucs.ubc.ca> References: <1jhnvaINN2p8@iskut.ucs.ubc.ca> NNTP-Posting-Host: msmri.med.ubc.ca