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]

CFT: hard-link tools in a combined tree


This patch makes hard links to as/ld/objdump/nm when building in a combined tree. This is necessary for toplevel bootstrap of a combined tree (where as, ld, binutils, bfd, etc. will also be built three times).

Can you please test this on cross targets? If good results are reported, ok for mainline?

Paolo
Index: configure.ac
===================================================================
RCS file: /cvs/gcc/gcc/gcc/configure.ac,v
retrieving revision 2.107
diff -p -u -u -r2.107 configure.ac
--- configure.ac	4 May 2005 01:14:48 -0000	2.107
+++ configure.ac	4 May 2005 16:06:40 -0000
@@ -1760,7 +1760,7 @@ elif test -f $gcc_cv_as_gas_srcdir/confi
   in_tree_gas=yes
   _gcc_COMPUTE_GAS_VERSION
   rm -f as$build_exeext
-  $LN_S ../gas/as-new$build_exeext as$build_exeext 2>/dev/null
+  $LN ../gas/as-new$build_exeext as$build_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 \
@@ -1897,7 +1897,7 @@ changequote(,)dnl
 	gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
 changequote([,])dnl
 	rm -f collect-ld$build_exeext
-	$LN_S ../ld/ld-new$build_exeext collect-ld$build_exeext 2>/dev/null
+	$LN ../ld/ld-new$build_exeext collect-ld$build_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
@@ -1990,7 +1990,7 @@ elif test -f $gcc_cv_binutils_srcdir/con
 	in_tree_nm=yes
 	gcc_cv_nm=./nm$build_exeext
 	rm -f nm$build_exeext
-	$LN_S ../binutils/nm-new$build_exeext nm$build_exeext 2>/dev/null
+	$LN ../binutils/nm-new$build_exeext nm$build_exeext 2>/dev/null
 elif test "x$program_prefix" != xNONE; then
 	gcc_cv_nm=${program_prefix}nm$build_exeext
 elif test x$build != x$host && test x$build != x$target; then
@@ -2014,7 +2014,7 @@ elif test -f $gcc_cv_binutils_srcdir/con
 	in_tree_objdump=yes
 	gcc_cv_objdump=./objdump$build_exeext
 	rm -f objdump$build_exeext
-	$LN_S ../binutils/objdump$build_exeext objdump$build_exeext 2>/dev/null
+	$LN ../binutils/objdump$build_exeext objdump$build_exeext 2>/dev/null
 elif test "x$program_prefix" != xNONE; then
 	gcc_cv_objdump=${program_prefix}objdump$build_exeext
 elif test x$build != x$host && test x$build != x$target; then

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