aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorBrendan Kehoe <brendan@cygnus>1997-06-17 22:31:59 +0000
committerBrendan Kehoe <brendan@cygnus>1997-06-17 22:31:59 +0000
commit3c4e3186a427c9cb9bfe4994d01ba2e317df81e5 (patch)
treeeea03f2bb1a2d70759a073d9bca7f7534a094e56 /configure.in
parent3d116ccd4664da9ca527f3b167d1e3623e94dc94 (diff)
downloadgdb-3c4e3186a427c9cb9bfe4994d01ba2e317df81e5.zip
gdb-3c4e3186a427c9cb9bfe4994d01ba2e317df81e5.tar.gz
gdb-3c4e3186a427c9cb9bfe4994d01ba2e317df81e5.tar.bz2
* configure.in (is_cross_compiler): If we're building
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
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in20
1 files changed, 13 insertions, 7 deletions
diff --git a/configure.in b/configure.in
index 372c1e5..fbab2d5 100644
--- a/configure.in
+++ b/configure.in
@@ -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