addition to http://gcc.gnu.org/faq.html

Gerald Pfeifer gerald@pfeifer.com
Sun Oct 30 21:31:00 GMT 2011


On Sun, 17 Apr 2011, Axel Freyn wrote:
> I propose to add a phrase to the "rpath"-section (Dynamic linker is
> unable to find GCC libraries), which explains how to use "-R" as
> compiler-option (by using "-Wl,")

This is a good idea, thank you.  I applied the small variation of
your original patch below (and sorry for the delay in following up).

Gerald

Index: faq.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/faq.html,v
retrieving revision 1.212
diff -u -r1.212 faq.html
--- faq.html	8 May 2011 13:01:44 -0000	1.212
+++ faq.html	30 Oct 2011 19:00:20 -0000
@@ -204,6 +204,9 @@
 platform and linker, to the <code>*link</code> or <code>*lib</code>
 specs.</p>
 
+<p>Alternately the syntax <code>-Wl,option</code> can be used to ask
+GCC to transfer the flag <code>option</code> to the linker.</p>
+
 <p>Another alternative is to install a wrapper script around gcc, g++
 or ld that adds the appropriate directory to the environment variable
 <code>LD_RUN_PATH</code> or equivalent (again, it's



More information about the Gcc-patches mailing list