PATCH: Fix gcc/configure.in (Re: configure script breakage)
H. J. Lu
hjl@lucon.org
Thu Sep 11 16:08:00 GMT 2003
On Thu, Sep 11, 2003 at 02:51:06PM +0200, Jakub Jelinek wrote:
> On Thu, Sep 11, 2003 at 05:18:43PM +1000, Greg Schafer wrote:
> > Hi
> >
> > 2 days ago I started seeing new testsuite failures when compiling the glibc
> > trunk. I'm using the latest gcc-3_3-branch compiler to compile it.
> >
> > It looks to me like a patch went into the gcc branch a few days ago which
> > has broken the glibc autoconf test for "__attribute__((visibility()))".
> >
> > It used to say:-
> >
> > "checking whether __attribute__((visibility())) is supported... yes"
> >
> > now it says "no".
> >
> > config.log shows:-
> >
> > conftest.c:1: warning: visibility attribute not supported in this configuration; ignored
> > +conftest.c:2: warning: visibility attribute not supported in this configuration; ignored
> >
> > This may well be a gcc problem and I'm still looking into it. But I just
> > wanted to raise the alarm to possibly save some poor soul from wasting hours
> > of investigation like I just have.
>
> It is a bug in the recent gcc/configure{.in,} checkin, just back it out and
> be happy.
>
This patch seems to fix it. OK to install?
H.J.
---
2003-09-11 H.J. Lu <hongjiu.lu@intel.com>
* configure.in (gcc_cv_ld_hidden): Check $gnu_ld before
disabling it.
* configure: Rebuild.
--- gcc/configure.in.ld 2003-09-11 08:44:31.000000000 -0700
+++ gcc/configure.in 2003-09-11 09:01:15.000000000 -0700
@@ -1675,7 +1675,7 @@ changequote([,])dnl
fi
fi
# non-GNU linkers don't seem to support .hidden yet
-if test x"$gnu_ld_flag" = x"no"; then
+if test x"$gnu_ld_flag" = x"no" && test x"$gnu_ld" = x"no"; then
gcc_cv_as_hidden=no
fi
if test x"$gcc_cv_as_hidden" = xyes; then
More information about the Gcc-patches
mailing list