This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


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

Re: A patch for configure


On Thu, May 18, 2000 at 03:54:04PM -0700, Ian Lance Taylor wrote:
>    It checks
> 
>    [ x${gcc_version} != x -a ! -d ${prefix}/lib/gcc-lib/${target_alias}/${gcc_version} ]
> 
>    If you don't have the gcc source in your souce tree directory, it
>    shouldn't do anything. If it does, it is a bug. If you can show me
>    how to reproduce it, I will fix it.
> 
> I do have gcc in my source tree.  I'm building an entire toolchain.
> I'm just not installing it.  This works fine with the appropriate -B
> options.
> 

It won't work if you don't use newlib and have those .o, so, .a and .h
files installed under ${prefix}/${target_alias}. How about I also
check if newlib doesn't exist?

>    > What problem are you trying to solve?  I can only guess that you are
>    > trying to solve the problem of an uninstalled gcc trying to find an
>    > installed binutils.  That problem relates to gcc, not to the
>    > binutils.  Why are you trying to fix it in the binutils?
> 
>    Because they may share the same configure.
> 
> But if I am right about the problem you are trying to solve, why not
> solve it in gcc/configure.in?

How do I do that? You still have to create the gcc directory if
you don't use newlib.


H.J.
---
Index: configure
===================================================================
RCS file: /work/cvs/gnu/binutils/configure,v
retrieving revision 1.1.1.7
diff -u -p -r1.1.1.7 configure
--- configure	2000/05/18 21:20:25	1.1.1.7
+++ configure	2000/05/18 23:12:06
@@ -754,7 +754,7 @@ target_os=`echo $result | sed 's/^\([^-]
 target=${target_cpu}-${target_vendor}-${target_os}
 
 if [ x${target} != x${build} -a x${build} = x${host} ]; then
-    if [ x${gcc_version} != x -a ! -d ${prefix}/lib/gcc-lib/${target_alias}/${gcc_version} ]; then
+    if [ x${gcc_version} != x -a ! -d newlib -a ! -d ${prefix}/lib/gcc-lib/${target_alias}/${gcc_version} ]; then
     	echo "Please create the directory:" 1>&2
     	echo 1>&2
 	echo "	${prefix}/lib/gcc-lib/${target_alias}/${gcc_version}" 1>&2

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