diff options
author | Mat Cross <mathewc@nag.co.uk> | 2021-08-22 10:21:16 +0100 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2021-09-10 16:08:57 -0400 |
commit | 436a257c50de2b885a6483af3c708c289e7d986f (patch) | |
tree | a511dd6f0622e36bcf8eec16bb587d4c04490c6a /mesonbuild/linkers | |
parent | 0e86258748b712a9074ebd67e2bf98fe7748c73f (diff) | |
download | meson-436a257c50de2b885a6483af3c708c289e7d986f.zip meson-436a257c50de2b885a6483af3c708c289e7d986f.tar.gz meson-436a257c50de2b885a6483af3c708c289e7d986f.tar.bz2 |
Comments on nagfor options setup.
Diffstat (limited to 'mesonbuild/linkers')
-rw-r--r-- | mesonbuild/linkers/linkers.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mesonbuild/linkers/linkers.py b/mesonbuild/linkers/linkers.py index 58e4324..7523a81 100644 --- a/mesonbuild/linkers/linkers.py +++ b/mesonbuild/linkers/linkers.py @@ -1047,7 +1047,14 @@ class QualcommLLVMDynamicLinker(LLVMDynamicLinker): class NAGDynamicLinker(PosixDynamicLinkerMixin, DynamicLinker): - """NAG Fortran linker, ld via gcc indirection.""" + """NAG Fortran linker, ld via gcc indirection. + + Using nagfor -Wl,foo passes option foo to a backend gcc invocation. + (This linking gathers the correct objects needed from the nagfor runtime + system.) + To pass gcc -Wl,foo options (i.e., to ld) one must apply indirection + again: nagfor -Wl,-Wl,,foo + """ id = 'nag' |