From patchwork Sun Apr 17 12:06:55 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: addition to http://gcc.gnu.org/faq.html Date: Sun, 17 Apr 2011 02:06:55 -0000 From: Axel Freyn X-Patchwork-Id: 91555 Message-Id: <20110417120655.GY3858@axel> To: gcc-patches@gcc.gnu.org Hi, 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,") Axel --- old/faq.html 2011-04-17 13:55:36.000000000 +0200 +++ new/faq.html 2011-04-17 14:00:28.000000000 +0200 @@ -244,7 +244,8 @@ flags such as -R or -rpath, depending on platform and linker, to the *link or *lib -specs.

+specs. The syntax -Wl,option of GCC can be used to ask GCC +to transfer the flag option to the linker.

Another alternative is to install a wrapper script around gcc, g++ or ld that adds the appropriate directory to the environment variable