build on sparc-sun-sunos4.1.3

Jim Wilson wilson@chestnut.cygnus.com
Mon Sep 1 16:56:00 GMT 1997


	Because libiberty is a host library, and only target libraries are
	multilibbed.  The target libiberty for a native is never built.  Solutions
	welcome.

I have installed a patch to fix this using the same method that works for
the irix6 port.  Namely, I added code to set target_subdir.

However, instead of using ${host} or ${host_alias}, which might not be a
valid filename for the target (e.g. may be more than 14 characters), I
decided to use `libraries'.  This should be OK for any UNIX machine.
It probably doesn't matter that it is not OK for other machines (e.g.
DOS, VMS), since we can always disable multilibbing for them.  Or, we
can change the filename later if necessary.  I kind of liked the choice
`libraries' though.

Mon Sep  1 16:45:44 1997  Jim Wilson  <wilson@cygnus.com>

	* configure.in (target_subdir): Set to libraries if enable_multilib.

Index: configure.in
===================================================================
RCS file: /cvs/cvsfiles/egcs/configure.in,v
retrieving revision 1.1.1.1
diff -p -r1.1.1.1 configure.in
*** configure.in	1997/08/21 22:57:39	1.1.1.1
--- configure.in	1997/09/01 23:45:23
*************** if [ x"${host}" = x"${target}" ] ; then
*** 244,255 ****
  	# that are in the 'cross only' list
  	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*) target_subdir=${host} ;;
! 	esac
  else
  	# similarly, don't build the targets in the 'native only' 
  	# list when building a cross compiler
--- 244,255 ----
  	# that are in the 'cross only' list
  	skipdirs="${skipdirs} ${cross_only}"
  	is_cross_compiler=no
! 	# Default to --enable-multilib.  See similar code below.
! 	if [ x${enable_multilib} = xno ]; then
! 	  target_subdir=.
! 	else
! 	  target_subdir=libraries
! 	fi
  else
  	# similarly, don't build the targets in the 'native only' 
  	# list when building a cross compiler





More information about the Gcc mailing list