This is the mail archive of the gcc@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]

gcc/configure failed to detect assembler hidden support on solaris2.6


Hi all,

I'm working on sparc-sun-solaris2.6 and I'm trying to build
binutils-2.13.1 + gcc-3.2.1 on that platform.

First I build and install binutils-2.13.1 then configured gcc with the
following line:
../gcc-3.2.1/configure --prefix=/var/tmp/gnu --with-gnu-as --with-gnu-ld
--with-as=/var/tmp/gnu/bin/as --with-ld=/var/tmp/gnu/bin/ld
--enable-languages=c

The gcc/configure script reports that the assembler doesn't support
hidden symbol attribute. Or in the same script there's a comment saying
that: "GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN."

Then I found that the following line(#7220) in gcc/configure:
ld_vers=`echo $ld_ver | sed -n 's,^.*[
]\([0-9][0-9]*\.[0-9][0-9]*\(\|\.[0-9][0-9]*\)\)\([  ].*\|\)$,\1,p'`
return an empty line instead of 2.13.1.

I changed it to:
ld_vers=`echo $ld_ver | sed -n 's,^.*[
]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*$,\1,p'`
and things seens to be OK.

Is it OK?

Thanks.

Thibaud.






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