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] Hard-link to in-tree tools


Daniel Jacobowitz helped finding out why modifying gcc/configure.ac was not enough.

Tested on a combined tree build with a bootstrap and regtest. Ok for mainline and src?

Paolo
2005-05-16  Paolo Bonzini  <bonzini@gnu.org>

	* Makefile.def (configure-gcc): Depend on all-* for
	binutils, gas, ld.
	(all-gcc): Remove dependencies on binutils, gas, ld.
	* Makefile.in: Regenerate.

gcc:
2005-05-16  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac: Hardlink to binutils, gas, ld.
	* configure: Regenerate.

Index: Makefile.def
===================================================================
RCS file: /cvs/gcc/gcc/Makefile.def,v
retrieving revision 1.50
diff -p -u -u -r1.50 Makefile.def
--- Makefile.def	30 Mar 2005 08:17:44 -0000	1.50
+++ Makefile.def	16 May 2005 16:52:20 -0000
@@ -242,9 +242,9 @@ dependencies = { module=all-build-fixinc
 
 // Host modules specific to gcc.
 dependencies = { module=configure-gcc; on=configure-intl; };
-dependencies = { module=configure-gcc; on=configure-binutils; };
-dependencies = { module=configure-gcc; on=configure-gas; };
-dependencies = { module=configure-gcc; on=configure-ld; };
+dependencies = { module=configure-gcc; on=all-binutils; };
+dependencies = { module=configure-gcc; on=all-gas; };
+dependencies = { module=configure-gcc; on=all-ld; };
 dependencies = { module=all-gcc; on=all-libiberty; hard=true; };
 dependencies = { module=all-gcc; on=all-intl; };
 dependencies = { module=all-gcc; on=all-build-texinfo; };
@@ -253,9 +253,6 @@ dependencies = { module=all-gcc; on=all-
 dependencies = { module=all-gcc; on=all-build-flex; };
 dependencies = { module=all-gcc; on=all-build-libiberty; };
 dependencies = { module=all-gcc; on=all-build-fixincludes; };
-dependencies = { module=all-gcc; on=all-binutils; };
-dependencies = { module=all-gcc; on=all-gas; };
-dependencies = { module=all-gcc; on=all-ld; };
 dependencies = { module=all-gcc; on=all-zlib; };
 dependencies = { module=all-gcc; on=all-libcpp; hard=true; };
 dependencies = { module=all-gcc; on=all-libiberty; };
Index: gcc/configure.ac
===================================================================
RCS file: /cvs/gcc/gcc/gcc/configure.ac,v
retrieving revision 2.111
diff -p -u -u -r2.111 configure.ac
--- gcc/configure.ac	8 May 2005 16:57:49 -0000	2.111
+++ gcc/configure.ac	16 May 2005 16:53:05 -0000
@@ -1761,7 +1761,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 \
@@ -1898,7 +1898,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
@@ -1991,7 +1991,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
@@ -2015,7 +2015,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]