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: Compile libgcc with -fPIC on SVR4?



  In message <199801281847.NAA04355@subrogation.cygnus.com>you write:
  > It seems to me that if it is correct to define
  > 
  > TARGET_LIBGCC2_CFLAGS = -fPIC
  > 
  > in config/sparc/t-sol2 and config/t-linux, then it is also correct to
  > define the same variable in config/t-svr4.
I'd tend to agree :-)  In general, I think we need to do this for any
target that supports shared libraries.

We have to be careful though -- we may need to handle -fpic and -fPIC
separately if there's a system that doesn't allow mixing of the two
styles in a single shared library.

jeff


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