Skip to content
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

Add support for building shared/dynamic libraries #1578

Merged
merged 14 commits into from
Nov 4, 2024
Merged

Conversation

njansson
Copy link
Collaborator

@njansson njansson commented Nov 1, 2024

Refactor build system to enable shared/dynamic libraries. This will ease with interfacing to python/Julia and to some extent linking with various external libraries

This is a breaking change, introducing the following

  • libtool is requirement to build Neko
  • Dependencies change from .o -> .lo
  • shared libraries (if requested) are named libneko-${PACKAGE_VERSION}.so
  • old build trees must regenerate their toolchains (./regen.sh)

Note: the default behaviour is to only build a static libneko.a (as before), shared libraries must be requested via --enable-shared

@njansson njansson added enhancement New feature or request compilers Issues with compilers refactor labels Nov 1, 2024
@timofeymukha
Copy link
Collaborator

Appears to work! I updated gitignore for the .lo and some other new stuff.

@njansson njansson merged commit 9032396 into develop Nov 4, 2024
25 of 27 checks passed
@njansson njansson deleted the feature/shlibs branch November 4, 2024 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compilers Issues with compilers enhancement New feature or request refactor
Projects
No open projects
Status: 🍻 Done
Development

Successfully merging this pull request may close these issues.

3 participants