This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
[patch, fortran] PR32704 - document -static-libgfortran
- From: Daniel Franke <franke dot daniel at gmail dot com>
- To: fortran at gcc dot gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 9 Jul 2007 21:12:25 +0200
- Subject: [patch, fortran] PR32704 - document -static-libgfortran
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:subject:date:user-agent:cc:mime-version:content-type:message-id; b=nfe8MpRFzPUSvSZdv1RDrCQfXRC10WMIH2aCf1i/1JPSnFBDvyc206lNWVcls7tcEVvB01EJ7WwBvNjHm4+l1iQV1nPlGbsG/jjah/V10S5B7JdLnFoZzLZuMNbch18ISwDuwiEQ/CPuHVLJGiS+Frhaqv9zQ5eRcSTMSPwgs7w=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:user-agent:cc:mime-version:content-type:message-id; b=hmKWl3fEyH0qf0tvZGGWrvFbwXmtAet8irLYvTB+Sc/Xr+FvawtEA8vKlw7J+IUVXGMPGqRYMy+hYQKBEmXwozqTayOMZnI+Xq5U+wfSGjLDO/DF/wjE1RCTqHpglim9tJOcMemevm/SP9HJjZzFAPtq+2kPCI572qfTNXJViQA=
The text was taken from the corresponding -static-libgcc option and adapted
to -static-libgfortran by my best knowledge.
2007-07-09 Daniel Franke <franke.daniel@gmail.com>
PR fortran/32704
* invoke.texi: Document option -static-libgfortran.
Tested info, dvi and html targets on i686-pc-linux-gnu.
Ok for trunk?
Regards
Daniel
Index: invoke.texi
===================================================================
--- invoke.texi (revision 126485)
+++ invoke.texi (working copy)
@@ -97,6 +97,7 @@
* Error and Warning Options:: How picky should the compiler be?
* Debugging Options:: Symbol tables, measurements, and debugging dumps.
* Directory Options:: Where to find module files
+* Link Options :: Influencing the linking step
* Runtime Options:: Influencing runtime behavior
* Code Gen Options:: Specifying conventions for function calls, data layout
and register usage.
@@ -140,6 +141,10 @@
@xref{Directory Options,,Options for Directory Search}.
@gccoptlist{-I@var{dir} -J@var{dir} -M@var{dir} -fintrinsic-modules-path @var{dir}}
+@item Link Options
+@xref{Link Options,,Options for influencing the linking step}.
+@gccoptlist{-static-libgfortran}
+
@item Runtime Options
@xref{Runtime Options,,Options for influencing runtime behavior}.
@gccoptlist{-fconvert=@var{conversion} -frecord-marker=@var{length} @gol
@@ -160,6 +165,7 @@
* Error and Warning Options:: How picky should the compiler be?
* Debugging Options:: Symbol tables, measurements, and debugging dumps.
* Directory Options:: Where to find module files
+* Link Options :: Influencing the linking step
* Runtime Options:: Influencing runtime behavior
* Code Gen Options:: Specifying conventions for function calls, data layout
and register usage.
@@ -616,8 +622,27 @@
they are not in the default location expected by the compiler.
@end table
+@node Link Options
+@section Influencing the Linking Step
+@cindex options, linking
+@cindex linking, static
+
+These options come into play when the compiler links object files into an
+executable output file. They are meaningless if the compiler is not doing
+a link step.
+
+@table @gcctabopt
+@item -static-libgfortran
+@opindex @code{static-libgfortran}
+On systems that provide @file{libgfortran} as a shared and a static
+library, this option forces the use of the static version. If no
+shared version of @file{libgfortran} was built when the compiler was
+configured, this option has no effect.
+@end table
+
+
@node Runtime Options
-@section Influencing runtime behavior
+@section Influencing Runtime Behavior
@cindex options, runtime
These options affect the runtime behavior of programs compiled with GNU Fortran.