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]

Cross compilation and RANLIB_TEST


In Makefile.in there are two sets of RANLIB variables, one for the host and
one for the target system. RANLIB_TEST should only test for the host ranlib,
but actually fails to find ranlib (unless RANLIB has been specified by the
user). Are my assumptions right? Then here is a tiny patch for today's
sources:

--- Makefile.in 1999/03/05 13:21:21     1.239
+++ Makefile.in 1999/03/12 13:53:36
@@ -118,8 +118,7 @@
 # Test to use to see whether ranlib exists on the system.
 RANLIB_TEST = \
   [ -f $(RANLIB) ] \
-  || ( [ "$(host_canonical)" = "$(target)" ] \
-       && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] )
+  || [ -f /usr/bin/ranlib -o -f /bin/ranlib ]
 
 # Compiler to use for compiling libgcc1.a.
 # OLDCC should not be the GNU C compiler,
-- 
Axel.Thimm@physik.fu-berlin.de Axel.Thimm@ifh.de


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