* g77 option for not allow dynamic libraries
@ 2006-04-12 23:25 ssp
0 siblings, 0 replies; 2+ messages in thread
From: ssp @ 2006-04-12 23:25 UTC (permalink / raw)
To: gcc-help
Could you let me know what is the option to compile and link a Fortran
program
using g77 without allowing dynamic libraries. Thanks !
^ permalink raw reply [flat|nested] 2+ messages in thread
* re: g77 option for not allow dynamic libraries
@ 2006-04-13 2:23 Bud Davis
0 siblings, 0 replies; 2+ messages in thread
From: Bud Davis @ 2006-04-13 2:23 UTC (permalink / raw)
To: gcc-help, shirley.pang
[bdavis@gfortran ~]$ cat a.f
print*,'hello'
end
[bdavis@gfortran ~]$ g77 a.f
[bdavis@gfortran ~]$ ldd a.out
libg2c.so.0 => /usr/lib/libg2c.so.0
(0x004ce000)
libm.so.6 => /lib/tls/libm.so.6 (0x00448000)
libgcc_s.so.1 => /lib/libgcc_s.so.1
(0x00725000)
libc.so.6 => /lib/tls/libc.so.6 (0x0031c000)
/lib/ld-linux.so.2 (0x002ff000)
[bdavis@gfortran ~]$ g77 -static a.f
[bdavis@gfortran ~]$ ldd a.out
not a dynamic executable
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-04-13 2:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-12 23:25 g77 option for not allow dynamic libraries ssp
2006-04-13 2:23 Bud Davis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).