Article View: gnu.gcc.help
Article #52243Re: gcc2.3.3 on Solaris2.1 and run-time search path
From: Edwin Allum
Date: Thu, 14 Jan 1993 22:51
Date: Thu, 14 Jan 1993 22:51
29 lines
1784 bytes
1784 bytes
exodus@crackle.Eng.Sun.COM (Greg Onufer) writes: >In <1993Jan13.174149.26740@jarvis.csri.toronto.edu> edwin@csri.toronto.edu (Edwin Allum) writes: >>Is there gcc2.3.3 support for the run-time search path LD_RUN_PATH and/or >>preferably the Solaris2.1 cc -R run-time library search path option. >An easy work-around is to just call the compiler during the link >phase like: >foo: foo.o bar.o > LD_RUN_PATH=/foo/bar gcc -o foo foo.o bar.o >The linker will use the environment variable or get the information >passed in from the compiler front end. Since gcc doesn't yet >support the -R flag, I've just set the environment variable while >linking. This method works with both compilers. >Cheers!greg Although I did read this in the Answerbook docs, I didn't try it. The option that I was looking for was the -Xlinker option in gcc. This allows me to pass the -R option to the linker. e.g. gcc -o foo foo.c -Xlinker -R/a/b Thanks to hamish@bnr.ca for point it out to me. Well at least now I know the man page doesn't list all the option but the gcc.info docs does. Thanks again for the replies, Edwin.
Technical Details
Message-ID:
<1993Jan14.175159.27054@jarvis.csri.toronto.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!spool.mu.edu!torn!utcsri!csri.toronto.edu!edwinReferences:
<1993Jan13.174149.26740@jarvis.csri.toronto.edu> <llbktfINNhs2@exodus.Eng.Sun.COM>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,38dbc19e7660e21e X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-01-14 16:27:38 PST Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!spool.mu.edu!torn!utcsri!csri.toronto.edu!edwin Newsgroups: gnu.gcc.help From: edwin@csri.toronto.edu (Edwin Allum) Subject: Re: gcc2.3.3 on Solaris2.1 and run-time search path Message-ID: <1993Jan14.175159.27054@jarvis.csri.toronto.edu> Keywords: solaris References: <1993Jan13.174149.26740@jarvis.csri.toronto.edu> <llbktfINNhs2@exodus.Eng.Sun.COM> Distribution: usa Date: 14 Jan 93 22:51:59 GMT Lines: 29