-
Notifications
You must be signed in to change notification settings - Fork 108
feat: shared
and static
library targets
#1138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…re the building order, not only link flags
shared
library targetsshared
and static
library targets
cc: @zoziha |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really complex. Thank you for your work, @perazz . Since all the tests have passed, I think this PR can be merged after waiting for potential review comments from others.
Additionally, I've left some comments.
Thank you for the review @zoziha. I will merge this one so we can release it with a new |
🔧 Add support for building shared libraries via
[library]
type optionThis PR introduces a new manifest option to control how libraries are built:
Key features for
type = "shared"
:lib<package>.{so|dll|dylib}
)..so
on Linux,.dylib
on macOS,.dll + .lib + .def
on Windows.install.library = true
, shared libraries are installed to thelib/
directory.fpm run
automatically updatesLD_LIBRARY_PATH
(or platform equivalent) to find runtime libraries.📚 documentation available at fortran-lang/fpm-docs#164
Address #681 #655, Supersede #1050.
cc: @certik @urbanjost @arteevraina @henilp105