RE-flex icon indicating copy to clipboard operation
RE-flex copied to clipboard

Dynamically linked library

Open bkmgit opened this issue 3 years ago • 5 comments

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

bkmgit avatar Jul 21 '22 10:07 bkmgit

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

genivia-inc avatar Aug 12 '22 17:08 genivia-inc

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

tlemo avatar Aug 30 '22 17:08 tlemo

@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 avatar Mar 25 '23 20:03 genivia-inc

Using ranlib seems like it would work.

bkmgit avatar Mar 26 '23 04:03 bkmgit

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 avatar Oct 07 '23 20:10 genivia-inc