This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Cross compilation and RANLIB_TEST
- To: egcs at egcs dot cygnus dot com
- Subject: Cross compilation and RANLIB_TEST
- From: Axel Thimm <Axel dot Thimm at physik dot fu-berlin dot de>
- Date: Fri, 12 Mar 1999 15:06:47 +0100
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