PATCH: Fix gcc/configure.in (Re: configure script breakage)

Jakub Jelinek jakub@redhat.com
Thu Sep 11 16:25:00 GMT 2003


On Thu, Sep 11, 2003 at 09:14:20AM -0700, H. J. Lu wrote:
> > > 	* configure.in (gcc_cv_ld_hidden): Check $gnu_ld before
> > > 	disabling it.
> > > 	* configure: Rebuild.
> > 
> > Where is gnu_ld ever defined?
> 
> # grep gnu_ld gcc/config.gcc
> #  gnu_ld_flag          Either yes or no depending on whether GNU ld was
> #  gnu_ld               Set to yes or no depending on whether the target
> ...

Lots of config.gcc targets which only have GNU ld don't set it.
Are you going to fix them all?
On the other side, the gcc_cv_as_hidden checking code already runs the right
gcc_cv_ld's --version. If it doesn't have GNU in it, it is not GNU ld,
so it can just be assumed to have no support for .hidden.
This is what trunk configure.in does ATM and is what IMHO 3.3 configure.in
should do too.

	Jakub



More information about the Libc-alpha mailing list