This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [bootstrap 1.1.1 on Solaris 2.6] incorrect PIC options fed to cc
- To: "pedwards at ball dot com" <pedwards at ball dot com>
- Subject: Re: [bootstrap 1.1.1 on Solaris 2.6] incorrect PIC options fed to cc
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 10 Dec 1998 00:40:06 -0700
- cc: "'egcs-bugs at cygnus dot com'" <egcs-bugs at cygnus dot com>
- Reply-To: law at cygnus dot com
In message <01BE2360.88271D90.pedwards@ball.com>you write:
>
> Bootstrapping egcs 1.1.1 on a sparc-sun-solaris2.6 using the native
> v4.0 cc, configured with --enable-shared.
>
> The PICFLAG case statement emits -fpic/-fPIC to cc, which is incorrect.
> The SPARCompiler cc takes -Kpic/-KPIC for those two options.
>
> I'm not certain where mt-frag's PICFLAG_FOR_TARGET comes into play; I
> assume it would be when building a cross-compiler... The ChangeLog
> has recent entries saying "don't pass PICFLAG_FOR_TARGET". In any
> case, I changed both config/m[th]-sparcpic before running configure:
>
> [I feel silly doing a context diff on one-line files, but what the
> heck...]
This patch would break builds with gcc though since it uses -fpic and -fPIC.
jeff