PerlAlien / Alien-curl

Discover or download and install curl + libcurl
0 stars 2 forks source link

remove --disable-shared from configure #1

Closed kiwiroy closed 7 years ago

kiwiroy commented 7 years ago

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?

plicease commented 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?

kiwiroy commented 7 years ago

That is a very good point. I've completely missed plugin 'Build::SearchDep' I'll return if that doesn't achieve for me.