compiling libg2c.a library

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux