feat: shared and static library targets#1138
Merged
perazz merged 60 commits intofortran-lang:mainfrom May 16, 2025
Merged
Conversation
…re the building order, not only link flags
shared library targetsshared and static library targets
…dynamic_library
Member
Author
cc: @zoziha |
zoziha
reviewed
May 15, 2025
zoziha
approved these changes
May 16, 2025
zoziha
reviewed
May 16, 2025
Member
Author
|
Thank you for the review @zoziha. I will merge this one so we can release it with a new |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔧 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})..soon Linux,.dylibon macOS,.dll + .lib + .defon Windows.install.library = true, shared libraries are installed to thelib/directory.fpm runautomatically 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