[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc-patches
Subject: Fix for cross-compiles in odd cases
From: Marc Espie <espie () schutzenberger ! liafa ! jussieu ! fr>
Date: 1999-09-17 23:38:24
[Download RAW message or body]
This was prompted by Michael Shalayeff, who had trouble building
an i386 to hppa cross compiler, because of problems with ranlib.
Seems like the AR_FOR_TARGET and RANLIB_FOR_TARGET macros won't
work correctly in some conditions, namely
- for a cross-compiler,
- when binutils objects don't happen to be in the right directory
relative to gcc.
I believe that it's simply a case of mixed up
program_transform_name vs. program_transform_cross_name.
Sat Sep 18 01:37:01 CEST 1999 Marc Espie <espie@cvs.openbsd.org>
* Makefile.in (AR_FOR_TARGET, RANLIB_FOR_TARGET): Fix target name
substitution.
Index: Makefile.in
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/Makefile.in,v
retrieving revision 1.306
diff -u -r1.306 Makefile.in
--- Makefile.in 1999/09/17 22:18:40 1.306
+++ Makefile.in 1999/09/17 23:32:07
@@ -186,7 +186,7 @@
if [ "$(host_canonical)" = "$(target)" ] ; then \
echo ar; \
else \
- t='$(program_transform_name)'; echo ar | sed -e $$t ; \
+ t='$(program_transform_cross_name)'; echo ar | sed -e $$t ; \
fi; \
fi`
AR_FLAGS_FOR_TARGET = rc
@@ -197,7 +197,7 @@
if [ "$(host_canonical)" = "$(target)" ] ; then \
echo ranlib; \
else \
- t='$(program_transform_name)'; echo ranlib | sed -e $$t ; \
+ t='$(program_transform_cross_name)'; echo ranlib | sed -e $$t ; \
fi; \
fi`
RANLIB_TEST_FOR_TARGET = \
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic