aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/linkers/linkers.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/linkers/linkers.py')
-rw-r--r--mesonbuild/linkers/linkers.py9
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'