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]

RE: Is -static a link-only switch?


Ian Lance Taylor wrote (in part): 
> In fact many targets compile code differently depending upon whether
> the code is to be put into a shared library or not, but this is
> controlled via options like -fpic, not -static.

Is it generally safe on all currently supported targets to assert -fno-pic
when compiling programs that will ultimately be linked with -static asserted?
Will targets that don't support -fpic (and -fon-pic) complain, or just quietly
accept the switch?



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