summaryrefslogtreecommitdiff
path: root/Tests/FortranModules/Subdir
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-09-26 10:27:55 -0400
committerBrad King <brad.king@kitware.com>2019-09-26 10:31:44 -0400
commit587ccffe74638676090005ac6b7f799f15a0112c (patch)
treedb0c2812ca6ed5bc432ca22c701063a0eb9a5df3 /Tests/FortranModules/Subdir
parentde14d38cd287a95ffc880a2ba4dde417bdd45b88 (diff)
downloadcmake-587ccffe74638676090005ac6b7f799f15a0112c.tar.gz
Tests: Add symbols to FortranModules static libraries
When GNU `ar` creates an archive with no symbols it has only an empty header but no string table. On Solaris the OS-provided `ld` fails in this case: ld: elf error: file libfoo.a: elf_getarsym Update our test to actually provide symbols from its archives.
Diffstat (limited to 'Tests/FortranModules/Subdir')
-rw-r--r--Tests/FortranModules/Subdir/subdir.f903
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/FortranModules/Subdir/subdir.f90 b/Tests/FortranModules/Subdir/subdir.f90
index 68955f6b5c..5288b065b1 100644
--- a/Tests/FortranModules/Subdir/subdir.f90
+++ b/Tests/FortranModules/Subdir/subdir.f90
@@ -1,2 +1,5 @@
MODULE subdirModuleA
+CONTAINS
+ SUBROUTINE subdirLibA
+ END SUBROUTINE
END MODULE