This is the mail archive of the gcc-help@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]

compiling libg2c.a library


Our present installation of g77 library libg2c.a generates
an error when I attempt to compile some code:

/usr/bin/ld: /usr/lib/gcc-lib/x86_64-redhat-linux/3.2.3/libg2c.a(s_stop.o):
relocation R_X86_64_32 against `a local symbol' can not be used
when making a shared object; recompile with -fPIC

I would like to re-compile libg2c.a with -fPIC to avoid this error.
I downloaded g77-0.5.23.tar.gz and within the f/runtime
directory I ran ./configure which complained about missing files:

configure: error: can not find install-sh or
install.sh in . ./.. ./../..

This lead me to believe that I may have to do a complete
g77 install to compile libg2c.a, is this correct?
Is it possible to compile libg2c.a without also compiling
all of g77?

To compile libg2c.a with -fPIC do I simply edit
f/runtime/Makefile.in by uncommenting the CFLAGS line to read

CFLAGS = -0 -g -fPIC

You may need my machine details. We use Redhat FC 5, the output of
uname -a is:

Linux medea.nofs.navy.mil 2.6.18-1.2239.fc5 #1 SMP Fri Nov 10 12:51:06 EST 2006 x86_64 x86_64 x86_64 GNU/Linux

Thank you


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