This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: addition to http://gcc.gnu.org/faq.html
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: Axel Freyn <axel-freyn at gmx dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 30 Oct 2011 20:01:21 +0100 (CET)
- Subject: Re: addition to http://gcc.gnu.org/faq.html
- References: <20110417120655.GY3858@axel>
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