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

Problems with shared libg2c library

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 (i686-pc-linux-gnu) using BFD version
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/collect2 -m elf_i386 -dynamic-linker /lib/ /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 => /lib/ (0x4001d000) => /lib/ (0x4003b000)
	/lib/ => /lib/ (0x40000000)

kiste:/usr/local/lib # ls -l*
lrwxrwxrwx    1 root     root           15 Oct  3 20:14 ->
lrwxrwxrwx    1 root     root           15 Oct  3 20:14 ->
-rw-r--r--    1 root     root       506918 Oct  3 20:14

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