Closed kiwiroy closed 7 years ago
When you link an XS module against a shared library you have to add it to the search path or adjust the library dynamic library to find the correct dependencies. Also, if you ever upgrade the Alien module, this can break already installed XS modules if they are using the dynamic library. In my experience, it is much safer to build a static library with PIC code and link to that for the XS module.
What is it that you are trying to do?
That is a very good point. I've completely missed plugin 'Build::SearchDep'
I'll return if that doesn't achieve for me.
Alien::Build::Plugin::Build::Autoconf
disables shared library builds by default. Not sure if this is the best way to manage this. Is there a use case for static only?