-fPIC flag does'nt work on freebsd

Jim Wilson wilson@cygnus.com
Thu Mar 19 16:38:00 GMT 1998

Try using the -v flag with both the old gcc and the new egcs gcc to see
what the difference in assembler flags is.

Also check to see what assembler each compiler is using.  It may be that
egcs is using a different assembler.  I would guess that is the problem
here.  The old gcc is perhaps using the very old as that comes with freebsd
and which requires the -k flag, whereas the new egcs gcc may perhaps be using
a new as that you installed from a recent binutils which doesn't want the
-k option.  If that is the case, then we need some kind of configuration
change to handle the old assembler differently than the new assembler.


More information about the Gcc-bugs mailing list