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.
This commit is contained in:
Brad King
2019-09-26 10:27:55 -04:00
parent de14d38cd2
commit 587ccffe74
3 changed files with 9 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
MODULE libraryModuleA
USE libraryModuleB
CONTAINS
SUBROUTINE libA
END SUBROUTINE
END MODULE

View File

@@ -1,2 +1,5 @@
MODULE libraryModuleB
CONTAINS
SUBROUTINE libB
END SUBROUTINE
END MODULE

View File

@@ -1,2 +1,5 @@
MODULE subdirModuleA
CONTAINS
SUBROUTINE subdirLibA
END SUBROUTINE
END MODULE