This is the mail archive of the egcs@egcs.cygnus.com mailing list for the EGCS project. See the EGCS home page for more information.


[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

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