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

Re: [bootstrap 1.1.1 on Solaris 2.6] incorrect PIC options fed to cc




  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


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