This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Problems with shared libg2c library
- To: gcc at gcc dot gnu dot org
- Subject: Problems with shared libg2c library
- From: Peter Schmid <schmid at snake dot iap dot physik dot tu-darmstadt dot de>
- Date: Wed, 3 Oct 2001 20:31:07 +0200 (CEST)
I thought that the current g77 compiler would employ the shared libg2c
library as a default. Though all the components are there, the linker
still chooses the static version of libg2c. Is a special compiler
option for dynamically linked fortran programs required?
Hope this helps,
Peter Schmid
g77 -v whetstoned.f
g77 version 3.1 20011003 (experimental) (Fortran Frontend version 0.5.27 20011003 (experimental))
Driving: g77 -v whetstoned.f -lfrtbegin -lg2c -lm
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/specs
Configured with: ../gcc/configure --enable-shared --enable-threads=posix --enable-languages=c,c++,f77,objc --disable-nls --enable-clocale=gnu
Thread model: posix
gcc version 3.1 20011003 (experimental)
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/f771 whetstoned.f -quiet -dumpbase whetstoned.f -version -o /tmp/ccFvnp74.s
GNU F77 version 3.1 20011003 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 3.1 20011003 (experimental).
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../../i686-pc-linux-gnu/bin/as -V -Qy -o /tmp/ccLavdWd.o /tmp/ccFvnp74.s
GNU assembler version 2.11.90.0.23 (i686-pc-linux-gnu) using BFD version 2.11.90.0.23
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/collect2 -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/crtbegin.o -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1 -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../../i686-pc-linux-gnu/lib -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../.. /tmp/ccLavdWd.o -lfrtbegin -lg2c -lm -lgcc -lc -lgcc /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/crtend.o /usr/lib/crtn.o
ldd a.out
libm.so.6 => /lib/libm.so.6 (0x4001d000)
libc.so.6 => /lib/libc.so.6 (0x4003b000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
kiste:/usr/local/lib # ls -l libg2c.so*
lrwxrwxrwx 1 root root 15 Oct 3 20:14 libg2c.so -> libg2c.so.0.0.0
lrwxrwxrwx 1 root root 15 Oct 3 20:14 libg2c.so.0 -> libg2c.so.0.0.0
-rw-r--r-- 1 root root 506918 Oct 3 20:14 libg2c.so.0.0.0