]>
Commit | Line | Data |
---|---|---|
c63539ff ML |
1 | .. |
2 | Copyright 1988-2022 Free Software Foundation, Inc. | |
3 | This is part of the GCC manual. | |
4 | For copying conditions, see the copyright.rst file. | |
5 | ||
6 | .. index:: options, linking, linking, static | |
7 | ||
8 | .. _link-options: | |
9 | ||
10 | Influencing the linking step | |
11 | **************************** | |
12 | ||
13 | These options come into play when the compiler links object files into an | |
14 | executable output file. They are meaningless if the compiler is not doing | |
15 | a link step. | |
16 | ||
17 | .. index:: static-libgfortran | |
18 | ||
19 | .. option:: -static-libgfortran | |
20 | ||
21 | On systems that provide :samp:`libgfortran` as a shared and a static | |
22 | library, this option forces the use of the static version. If no | |
23 | shared version of :samp:`libgfortran` was built when the compiler was | |
24 | configured, this option has no effect. | |
25 | ||
26 | .. index:: static-libquadmath | |
27 | ||
28 | .. option:: -static-libquadmath | |
29 | ||
30 | On systems that provide :samp:`libquadmath` as a shared and a static | |
31 | library, this option forces the use of the static version. If no | |
32 | shared version of :samp:`libquadmath` was built when the compiler was | |
33 | configured, this option has no effect. | |
34 | ||
35 | Please note that the :samp:`libquadmath` runtime library is licensed under the | |
36 | GNU Lesser General Public License (LGPL), and linking it statically introduces | |
3ed1b4ce | 37 | requirements when redistributing the resulting binaries. |