Compile libgcc with -fPIC on SVR4?

Ian Lance Taylor ian@cygnus.com
Wed Jan 28 10:48:00 GMT 1998


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.

Otherwise, people on SVR4 machines are likely to have trouble creating
shared libraries with libgcc.  I don't have an SVR4 machine to test
this on, though; perhaps somebody could try it out and report back to
the list.

This grew out of a discussion with somebody trying to use the GNU
linker to build a shared library on a SPARC SVR4 machine.

Ian



More information about the Gcc-bugs mailing list