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

Jeffrey A Law law@cygnus.com
Wed Dec 9 23:55:00 GMT 1998


  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



More information about the Gcc-bugs mailing list