This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: FAQ How to install both EGCS and gcc2
- To: egcs-patches at cygnus dot com
- Subject: PATCH: FAQ How to install both EGCS and gcc2
- From: Nathan Sidwell <nathan at acm dot org>
- Date: Wed, 20 Jan 1999 13:42:19 +0000
- Organization: University of Bristol
- Reply-To: nathan at cs dot bris dot ac dot uk
Hi,
attached is a patch to htdocs/faq.html describing another method of installing
both gcc2 and egcs. (The one I use for keeping a release, snapshot and
development versions of egcs.)
nathan
--
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
You can up the bandwidth, but you can't up the speed of light
nathan@acm.org http://www.cs.bris.ac.uk/~nathan/ nathan@cs.bris.ac.uk
Index: wwwdocs/htdocs/faq.html
===================================================================
RCS file: /egcs/carton/cvsfiles/wwwdocs/htdocs/faq.html,v
retrieving revision 1.98
diff -c -3 -p -r1.98 faq.html
*** faq.html 1999/01/19 14:38:29 1.98
--- faq.html 1999/01/20 13:33:33
*************** Then make a symlink from /usr/local/bin/
*** 321,326 ****
--- 321,349 ----
from /usr/local/bin/gcc2 to /usr/local/gcc2/bin/gcc. Create similar links
for the "g++", "c++" and "g77" compiler drivers.
+ <p>An alternative to using symlinks is to configure with a
+ --program-transform-name option. This option specifies a sed command to
+ process installed program names with. Using it you can, for instance,
+ have all the EGCS programs installed as "egcs-gcc" and the like. You
+ will still have to specify different --prefix options for EGCS and
+ gcc2, because it is only the executable program names that are
+ transformed. The difference is that you (as administrator) do not have
+ to set up symlinks, but must specify additional directories in your (as
+ a user) PATH. A complication with --program-transform-name is that the
+ sed command invariably contains characters significant to the shell,
+ and these have to be escaped correctly, also it is not possible to use
+ "^" or "$" in the command. Here is the option to prefix "egcs-" to the
+ egcs installed programs
+ "--program-transform-name='s,\\\\(.*\\\\),egcs-\\\\1,'". With the above
+ --prefix option, that will install the EGCS programs into
+ /usr/local/egcs/bin with names prefixed by "egcs-". You can use
+ --program-transform-name if you have multiple versions of EGCS, and
+ wish to be sure about which version you are invoking.
+
+ <p>If you use --prefix, EGCS may have difficulty locating a GNU
+ assembler or linker on your system, <a href="#gas">GCC can not find GNU
+ as/GNU ld</a> explains how to deal with this.
+
<hr>
<h2><a name="rpath">Dynamic linker is unable to find GCC libraries</a></h2>
<p>This problem manifests itself by programs not finding shared libraries