diff options
author | Brad King <brad.king@kitware.com> | 2019-09-26 14:27:55 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-09-26 14:31:44 (GMT) |
commit | 587ccffe74638676090005ac6b7f799f15a0112c (patch) | |
tree | db0c2812ca6ed5bc432ca22c701063a0eb9a5df3 /Tests/FortranModules | |
parent | de14d38cd287a95ffc880a2ba4dde417bdd45b88 (diff) | |
download | CMake-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')
-rw-r--r-- | Tests/FortranModules/Library/a.f90 | 3 | ||||
-rw-r--r-- | Tests/FortranModules/Library/b.f90 | 3 | ||||
-rw-r--r-- | Tests/FortranModules/Subdir/subdir.f90 | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/Tests/FortranModules/Library/a.f90 b/Tests/FortranModules/Library/a.f90 index 3031c07..c180cc0 100644 --- a/Tests/FortranModules/Library/a.f90 +++ b/Tests/FortranModules/Library/a.f90 @@ -1,3 +1,6 @@ MODULE libraryModuleA USE libraryModuleB +CONTAINS + SUBROUTINE libA + END SUBROUTINE END MODULE 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 diff --git a/Tests/FortranModules/Subdir/subdir.f90 b/Tests/FortranModules/Subdir/subdir.f90 index 68955f6..5288b06 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 |