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

Dynamically linked library #142

Open
bkmgit opened this issue Jul 21, 2022 · 5 comments
Open

Dynamically linked library #142

bkmgit opened this issue Jul 21, 2022 · 5 comments
Labels
question A technical question that has or needs clarification

Comments

@bkmgit
Copy link
Contributor

bkmgit commented Jul 21, 2022

Consider modifying the configure script to allow creation of either, or both statically and dynamically linked libraries.

@genivia-inc genivia-inc added the help wanted Extra attention is needed label Jul 28, 2022
@genivia-inc
Copy link
Member

libtool turned out to be problematic in the past on MacOS. So I've not touched lib/Makefile.am for a long time.

@bkmgit bkmgit mentioned this issue Aug 14, 2022
Closed
@tlemo
Copy link
Contributor

tlemo commented Aug 30, 2022

@bkmgit, in case switching the build system is an option, the included CMake scripts define both static and shared (dynamic) versions of the libraries.

@genivia-inc
Copy link
Member

@bkmgit It's been a while, maybe too long... Libtool isn't available on MacOS by default. Needs Homebrew or Macports to install. That's unfortunate. On the other hand, there is ranlib. Also the build.sh script could be modified perhaps to check if libtool is available and use it? What do you think?

@genivia-inc genivia-inc added the enhancement New feature or request label Mar 25, 2023
@bkmgit
Copy link
Contributor Author

bkmgit commented Mar 26, 2023

Using ranlib seems like it would work.

@genivia-inc
Copy link
Member

I don't think that ranlib alone would work, since it is part of libtool and libtool causes problems on MacOS.

I checked but MacOS still has the libtool issues. So it won't be possible on MacOS to create dynamic libraries using autotools with libtool/ranlib. Using autotools causes problems when dynamic libraries are enabled with LT_INIT and the lib_LTLIBRARIES in the lib/Makefile.am. It simply doesn't compile and I can't find a way to get around that.

@genivia-inc genivia-inc added question A technical question that has or needs clarification wontfix This will not be worked on and removed enhancement New feature or request help wanted Extra attention is needed labels Oct 9, 2023
@genivia-inc genivia-inc removed the wontfix This will not be worked on label Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question A technical question that has or needs clarification
Projects
None yet
Development

No branches or pull requests

3 participants