3 ms·
Dynamic linking isn't actually a problem in the open source world - you build your shared libraries with -fPIC -shared and link other code against them just lik
by makomk 12y ago
Dynamic linking isn't actually a problem in the open source world - you build your shared libraries with -fPIC -shared and link other code against them just like you would any other library, because their shared library systems were designed to behave sensibly from the start. Libtool was created for all the existing proprietary OSes with their own, often half-baked, support for shared libraries[1] and uncooperative, opaque corporate developers; it's as much an artifact of the cathedral as the bazaar[2]. To quote the documentation:
"Ideally, libtool would be a standard that would be implemented as series of extensions and modifications to existing library systems to make them work consistently. However, it is not an easy task to convince operating system developers to mend their evil ways, and people want to build shared libraries right now, even on buggy, broken, confused operating systems."
[1] Or worse, no shared library support at all. This is a major headache because linking against static libraries requires you to manually link all the libraries they depend on too; libtool handles this for you on systems with no shared library support or no native dependency tracking.
[2] Especially since it's a GNU tool and their development model has historically been more cathedral than bazaar anyway.