This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix configure breakage when cross compiling


The recent change to gcc's configure script causes cross building
failures with a uber tree.  It doesn't happen till well into the build
process (when trying to configure boehm-gc), but it can all be traced
back to this change:

2004-10-06  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac (symbolic_link): Replace with $LN_S.
	(Assembler/Linker): Hard link from gas and binutils trees.
	* aclocal.m4 (gcc_AC_PROG_LN_S): Try "cp -p" before cp.
	* configure: Regenerate.

The problem was that we weren't using LN_S, we were using LN... :-(

Fixed with:

2004-10-14  Richard Earnshaw  <rearnsha@arm.com>

	* configure.ac: Use $LN_S for creating symlinks (not $LN).
	* configure: Regenerate.

R.

Index: configure.ac
===================================================================
RCS file: /cvs/gcc/gcc/gcc/configure.ac,v
retrieving revision 2.74
diff -p -r2.74 configure.ac
*** configure.ac	12 Oct 2004 08:22:25 -0000	2.74
--- configure.ac	14 Oct 2004 13:07:31 -0000
*************** elif test -f $gcc_cv_as_gas_srcdir/confi
*** 1746,1752 ****
    in_tree_gas=yes
    _gcc_COMPUTE_GAS_VERSION
    rm -f as$host_exeext
!   $LN ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
    in_tree_gas_is_elf=no
    if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
       || (grep 'obj_format = multi' ../gas/Makefile \
--- 1746,1752 ----
    in_tree_gas=yes
    _gcc_COMPUTE_GAS_VERSION
    rm -f as$host_exeext
!   $LN_S ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
    in_tree_gas_is_elf=no
    if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
       || (grep 'obj_format = multi' ../gas/Makefile \
*************** changequote(,)dnl
*** 1879,1885 ****
  	gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
  changequote([,])dnl
  	rm -f collect-ld$host_exeext
! 	$LN ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
  elif test -x "$LD_FOR_TARGET"; then
          gcc_cv_ld="$LD_FOR_TARGET"
  elif test -x "$LD" && test x$host = x$target; then
--- 1879,1885 ----
  	gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
  changequote([,])dnl
  	rm -f collect-ld$host_exeext
! 	$LN_S ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
  elif test -x "$LD_FOR_TARGET"; then
          gcc_cv_ld="$LD_FOR_TARGET"
  elif test -x "$LD" && test x$host = x$target; then
*************** elif test -f $gcc_cv_binutils_srcdir/con
*** 1970,1976 ****
  	in_tree_nm=yes
  	gcc_cv_nm=./nm$host_exeext
  	rm -f nm$host_exeext
! 	$LN ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
  elif test "x$program_prefix" != xNONE; then
  	gcc_cv_nm=${program_prefix}nm$host_exeext
  else
--- 1970,1976 ----
  	in_tree_nm=yes
  	gcc_cv_nm=./nm$host_exeext
  	rm -f nm$host_exeext
! 	$LN_S ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
  elif test "x$program_prefix" != xNONE; then
  	gcc_cv_nm=${program_prefix}nm$host_exeext
  else
*************** elif test -f $gcc_cv_binutils_srcdir/con
*** 1992,1998 ****
  	in_tree_objdump=yes
  	gcc_cv_objdump=./objdump$host_exeext
  	rm -f objdump$host_exeext
! 	$LN ../binutils/objdump$host_exeext objdump$host_exeext 2>/dev/null
  elif test "x$program_prefix" != xNONE; then
  	gcc_cv_objdump=${program_prefix}objdump$host_exeext
  else
--- 1992,1998 ----
  	in_tree_objdump=yes
  	gcc_cv_objdump=./objdump$host_exeext
  	rm -f objdump$host_exeext
! 	$LN_S ../binutils/objdump$host_exeext objdump$host_exeext 2>/dev/null
  elif test "x$program_prefix" != xNONE; then
  	gcc_cv_objdump=${program_prefix}objdump$host_exeext
  else

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