This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: crosstool OS X host -> i686/linux target ?


Allan:


Allan Clark wrote:


I made some changes for crosstool to address these, and I thought I sent them to Dan, but if they aren't there, then there's a disconnect. I still owe some Sendmail changes before I do anything more..

The as and ld version checks can be skipped; my patch basically causes the builds to skip these checks.


Attached is my attempt at the same thing. Seems to work for me.


b.g.


--
Bill Gatliff
bgat@billgatliff.com
So what part of make clean all install do you not understand?

This simple patch tells the glibc configuration machinery
to ignore version information reported by GNU as, ld and gcc.
It seems as though OS X versions of these tools either don't
respond to --version, or respond in a way that confuses the
configure script.

An obvious bug in this patch is that it is a gross hack that
causes the configure script to ignore version information on
ALL build hosts, not just OS X.  So unless you know your
toolchain versions are ok a-priori, do not install this patch
on any host other than OS X.


b.g.
Bill Gatliff <bgat@billgatliff.com>


--- configure.bgat.orig	2005-06-27 12:34:06.456802377 -0500
+++ configure	2005-06-27 12:34:06.429807756 -0500
@@ -3916,10 +3916,10 @@
 echo $ECHO_N "checking version of $AS... $ECHO_C" >&6
   ac_prog_version=`$AS -v </dev/null 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
   case $ac_prog_version in
-    '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
+    '') ac_prog_version="v. ?.??, bad (ignored)"; ac_verc_fail=no;;
     2.1[3-9]*)
        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
-    *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
+    *) ac_prog_version="$ac_prog_version, bad (ignored)"; ac_verc_fail=no;;
 
   esac
   echo "$as_me:$LINENO: result: $ac_prog_version" >&5
@@ -3977,10 +3977,10 @@
 echo $ECHO_N "checking version of $LD... $ECHO_C" >&6
   ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
   case $ac_prog_version in
-    '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
+    '') ac_prog_version="v. ?.??, bad (ignored)"; ac_verc_fail=no;;
     2.1[3-9]*)
        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
-    *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
+    *) ac_prog_version="$ac_prog_version, bad (ignored)"; ac_verc_fail=no;;
 
   esac
   echo "$as_me:$LINENO: result: $ac_prog_version" >&5
@@ -4092,10 +4092,10 @@
 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
   ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
   case $ac_prog_version in
-    '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
+    '') ac_prog_version="v. ?.??, bad (ignored)"; ac_verc_fail=no;;
     3.[2-9]* | 4.[0-9]* )
        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
-    *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
+    *) ac_prog_version="$ac_prog_version, bad (ignored)"; ac_verc_fail=no;;
 
   esac
   echo "$as_me:$LINENO: result: $ac_prog_version" >&5

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com

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