Compile libgcc with -fPIC on SVR4?
Todd Vierling
tv@pobox.com
Wed Jan 28 14:06:00 GMT 1998
On Wed, 28 Jan 1998, Jeffrey A Law wrote:
: > 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.
`Multilib'. That's what solves the mix-and-match problems on affected
targets. SPARC SunOS 4.1.x, for example, has a `pic' (-fpic), `ucpic'
(-fPIC), and a standard version of libgcc.a, one each for V7 SPARC and one
each for V8 SPARC. What's odd (bug!?) is that if --enable-shared is set at
config time, libstdc++.so.2.8.0 installs into *every* lib directory, whereas
it should just be in the standard lib directory (compiled with -fPIC and for
V7 SPARC).
=====
===== Todd Vierling (Personal tv@pobox.com) =====
== "There's a myth that there is a scarcity of justice to go around, so
== that if we extend justice to 'those people,' it will somehow erode the
== quality of justice everyone else receives." -- Maria Price
More information about the Gcc-bugs
mailing list