This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: why doesn't "--program-prefix=<foo>" work?


On Wed, Mar 05, 2003 at 11:47:58AM -0500, Josh Fryman wrote:
> 
> hi,
> 
> silly question: why doesn't --program-prefix work?
> 
> using gcc-3.2.2 or -3.2.1 (or any version for all i know), this flag seems
> to be ignored.  eg, if i run this:
> 
> TARGET="armv5b-linux"
> HOST="i686-pc-linux-gnu"
> PROGPREFIX="xscalebe-"
> CPU="xscale"
> PREFIX="/usr/local/xscalebe/"
> 
> ../gcc-$GCCVER-src/configure --target=$TARGET --prefix=$PREFIX $HOST --with-headers=$KERNEL/include --disable-shared --disable-threads --enable-languages="c" --nfp --with-cpu=$CPU  --without-fp --with-softfloat-support=internal --program-prefix=$PROGPREFIX
> 
> then the 'gcc' generated and installed in /usr/local/xscalebe/bin 
> is _not_ the 'xscalebe-[gcc,cpp]' that one expects, but rather they
> are 'armv5b-linux-[gcc,cpp]'.  since i'm using similar control over
> binutils/etc, i would prefer all the names to match, and hence 
> expected --program-prefix to make it so.
> 
> what's wrong with this?  am i doing something incorrect?

Try this patch?  I'm not sure if it's generally appropriate or not but
I've been using it for a while.

--- gcc-3.2/gcc/Makefile.in.orig        Fri Jul  5 15:51:47 2002
+++ gcc-3.2/gcc/Makefile.in     Fri Jul  5 15:53:11 2002
@@ -171,7 +171,7 @@

 # Sed command to transform gcc to installed name.  Overwritten by configure.
 program_transform_name = @program_transform_name@
-program_transform_cross_name = s,^,$(target_alias)-,
+program_transform_cross_name = @program_transform_name@

 build_canonical = @build_canonical@
 host_canonical = @host_canonical@


-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]