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]

3.4/3.5 PATCH: Search for as, ld below libexec/gcc instead of lib/gcc-lib


Building the 3.4 branch on IRIX 5.3 with GNU as installed in
/usr/local/libexec/gcc/mips-sgi-irix5.3/3.4.0/as and configuring with
--with-gnu-as only, I noticed that, unlike the freshly built compiler,
configure doesn't look in this location, but below lib/gcc-lib instead.
This way, the wrong assembler (/usr/bin/as in this case) is used to test
for assembler features.  The same problem exists looking for the linker.

The following patch fixes this obvious inconsistency.

Ok for 3.4 branch and mainline.

	Rainer

-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University


Fri Feb  6 21:07:47 2004  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

	* configure.in: Search for as, ld below libexec/gcc.
	* configure: Regenerate.
	
Index: gcc/configure.ac
===================================================================
RCS file: /cvs/gcc/gcc/gcc/configure.ac,v
retrieving revision 2.13
diff -u -p -r2.13 configure.ac
--- gcc/configure.ac	9 Feb 2004 17:40:32 -0000	2.13
+++ gcc/configure.ac	9 Feb 2004 18:03:08 -0000
@@ -1625,8 +1625,8 @@ if test "x$gcc_cv_as" = x; then
 		gcc_cv_as=`echo as | sed ${program_transform_name}`$host_exeext
 	fi
 
-	test_dirs="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
-		   $test_prefix/lib/gcc-lib/$target_noncanonical \
+	test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
+		   $test_prefix/libexec/gcc/$target_noncanonical \
 		   /usr/lib/gcc/$target_noncanonical/$gcc_version \
 		   /usr/lib/gcc/$target_noncanonical \
 		   $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
@@ -1741,8 +1741,8 @@ if test "x$gcc_cv_ld" = x; then
 		gcc_cv_ld=`echo ld | sed ${program_transform_name}`$host_exeext
 	fi
 
-	test_dirs="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
-		   $test_prefix/lib/gcc-lib/$target_noncanonical \
+	test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
+		   $test_prefix/libexec/gcc/$target_noncanonical \
 		   /usr/lib/gcc/$target_noncanonical/$gcc_version \
 		   /usr/lib/gcc/$target_noncanonical \
 		   $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \


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