configure for different names/locations

John R MacMillan john@interlog.com
Fri Feb 20 10:32:00 GMT 1998


I had some difficulty trying to configure egcs-1.0.1 with a different
program prefix, first with --program-prefix and also with
--program-transform-name, and to change the location of some of the
installed portions.

With --program-prefix=e, the program_transform_name was not correctly
set in gcc/Makefile; it still had the default (s,x,x).

With --program-transform-name='s,^,e,' it was propagated, but because
the CONFIG_ARGUMENTS variable in the Makefile has this unquoted, and
the SHELL (/bin/sh) on the build machine (sparc-sun-solaris2.5) still
uses '^' as a synonmym for '|', this caused problems later in the
build (config.status has this same problem; it is explicitly a
#!/bin/sh script but does not quote its arguments).

When I convinced it to use a different SHELL and built, only gcc, g++
and c++ used the program prefix; the rest (gcov, protoize, etc.) did
not.

I also tried to do a "make bindir=/whatever" to get the binaries to
install somewhere other than ${exec_prefix}/bin, but this had no
effect, since it's not included in BASE_FLAGS_TO_PASS.

These are pretty minor nits, obviously; when I built things the
normal way it built beautifully on all the platforms I have tried it
on so far.  Good work, folks!



More information about the Gcc-bugs mailing list