From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin v. Loewis" To: PATRICK.O.CESARD@saic.com Cc: help-gcc@gnu.org Subject: Re: About GCC and the -R option (a linker option I believe) Date: Sat, 01 Apr 2000 00:00:00 -0000 Message-ID: <200003301740.TAA00797@loewis.home.cs.tu-berlin.de> References: <3C8C1135B453D311870C0008C7916A040C93D5@mcl-its-exs03.mail.saic.com> X-SW-Source: 2000-q1/msg00429.html Message-ID: <20000401000000.LxPqGz7W-CebHyFccdYntLPBLNQn0cPiY8IEQ2k1F9c@z> > I have been reading the gcc manual entitled "Using and Porting the GNU > Compiler Collection" but cannot find any documentation about the -R option > used to include shared library directory paths in an executable. I've > used this option with gcc on my Solaris 2.7 machine and it works but it is > not recognized by gcc on my HPUX10-20 machine. That's why I decided to > actually look it up the gcc manual. This option is not a gcc option, but a linker option. GCC recognizes some of the assembler and linker options of the native tools, and passes them through to those tools. What those options are highly depends on the platform, and possibly on the exact version of the assembler and linker. It is safer to use use the -Wl, option of gcc to pass options to the linker, that way, there is no confusion with options to other passes. You'll have to look for the equivalent of -R in your linker documentation, then. Regards, Martin