Made Fortran static libraries work. Closes #237.
parent
7c6e99149b
commit
5467b7d58b
5 changed files with 47 additions and 0 deletions
@ -0,0 +1,6 @@ |
||||
program hello |
||||
use static_hello |
||||
implicit none |
||||
|
||||
call static_say_hello() |
||||
end program hello |
@ -0,0 +1,5 @@ |
||||
project('try-static-library', 'fortran') |
||||
|
||||
static_hello = static_library('static_hello', 'static_hello.f95') |
||||
|
||||
executable('test_exe', 'main.f95', link_with : static_hello) |
@ -0,0 +1,17 @@ |
||||
module static_hello |
||||
implicit none |
||||
|
||||
private |
||||
public :: static_say_hello |
||||
|
||||
interface static_say_hello |
||||
module procedure say_hello |
||||
end interface static_say_hello |
||||
|
||||
contains |
||||
|
||||
subroutine say_hello |
||||
print *, "Static library called." |
||||
end subroutine say_hello |
||||
|
||||
end module static_hello |
Loading…
Reference in new issue