summaryrefslogtreecommitdiffstats
path: root/Tests/FortranModules/Library/b.f90
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-09-26 14:27:55 (GMT)
committerBrad King <brad.king@kitware.com>2019-09-26 14:31:44 (GMT)
commit587ccffe74638676090005ac6b7f799f15a0112c (patch)
treedb0c2812ca6ed5bc432ca22c701063a0eb9a5df3 /Tests/FortranModules/Library/b.f90
parentde14d38cd287a95ffc880a2ba4dde417bdd45b88 (diff)
downloadCMake-587ccffe74638676090005ac6b7f799f15a0112c.zip
CMake-587ccffe74638676090005ac6b7f799f15a0112c.tar.gz
CMake-587ccffe74638676090005ac6b7f799f15a0112c.tar.bz2
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/Library/b.f90')
-rw-r--r--Tests/FortranModules/Library/b.f903
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/FortranModules/Library/b.f90 b/Tests/FortranModules/Library/b.f90
index ae1edcb..f550996 100644
--- a/Tests/FortranModules/Library/b.f90
+++ b/Tests/FortranModules/Library/b.f90
@@ -1,2 +1,5 @@
MODULE libraryModuleB
+CONTAINS
+ SUBROUTINE libB
+ END SUBROUTINE
END MODULE