This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Compile libgcc with -fPIC on SVR4?
- To: Ian Lance Taylor <ian at cygnus dot com>
- Subject: Re: Compile libgcc with -fPIC on SVR4?
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Wed, 28 Jan 1998 12:27:33 -0700
- cc: egcs-bugs at cygnus dot com
- Reply-To: law at cygnus dot com
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