MacOS libtool and GNU libtool: Recommended way for coexistence?
ryandesign at macports.org
Fri May 1 04:24:12 UTC 2020
On Apr 30, 2020, at 02:56, Ces VLC wrote:
> Today I got lots of errors when building one of my projects, about "-static" not being supported by libtool... then I realized that the reason is that such project was developed with the MacOS libtool in mind, and by installing GNU's libtool (because of it being required by CUnit), the GNU version takes higher precedence over the MacOS version, and then it breaks the build for my project.
> So... can you give some advice on how to manage the coexistence of both libtools?
If you install the MacPorts libtool port, it will install GNU libtool as "glibtool", and Apple's libtool will remain as "libtool".
If you installed GNU libtool some other way such that it was installed somewhere in your PATH as "libtool", maybe uninstall it and install the MacPorts libtool port instead.
More information about the macports-users