* configure.in (is_cross_compiler): If we're building
authorBrendan Kehoe <brendan@cygnus>
Tue, 17 Jun 1997 22:31:59 +0000 (22:31 +0000)
committerBrendan Kehoe <brendan@cygnus>
Tue, 17 Jun 1997 22:31:59 +0000 (22:31 +0000)
mips-sgi-irix6* native, turn on ENABLE_MULTILIB and set TARGET_SUBDIR.

forces it to build libiberty w/ the newly built compiler, solving the
n32 vs o32 problem doing the tests

ChangeLog
configure.in

index 44d72ec..aa5c436 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Jun 17 15:31:20 1997  Brendan Kehoe  <brendan@lisa.cygnus.com>
+
+       * configure.in (is_cross_compiler): If we're building
+       mips-sgi-irix6* native, turn on ENABLE_MULTILIB and set TARGET_SUBDIR.
+
 Tue Jun 17 12:20:59 1997  Tom Tromey  <tromey@cygnus.com>
 
        * Makefile.in (all-sn): Depend on all-grep.
index 372c1e5..fbab2d5 100644 (file)
@@ -256,21 +256,27 @@ if [ x"${host}" = x"${target}" ] ; then
        skipdirs="${skipdirs} ${cross_only}"
        is_cross_compiler=no
        target_subdir=.
+       case "${host}" in
+          # We need multilib support for irix6, to get libiberty built
+         #  properly for o32 and n32.
+          mips-sgi-irix6*) enable_multilib=yes ; target_subdir=${host} ;;
+       esac
 else
        # similarly, don't build the targets in the 'native only' 
        # list when building a cross compiler
        skipdirs="${skipdirs} ${native_only}"
        is_cross_compiler=yes
        target_subdir=${target_alias}
-       if [ ! -d ${target_subdir} ] ; then
-           if mkdir ${target_subdir} ; then true
-           else
-               echo "'*** could not make ${PWD=`pwd`}/${target_subdir}" 1>&2
-                exit 1
-           fi
-       fi
 fi     
 
+if [ ! -d ${target_subdir} ] ; then
+  if mkdir ${target_subdir} ; then true
+  else
+    echo "'*** could not make ${PWD=`pwd`}/${target_subdir}" 1>&2
+    exit 1
+  fi
+fi
+
 copy_dirs=
 
 # Handle --with-headers=XXX.  The contents of the named directory are