Skip to content

Option to build shared libraries with Alien::GSL (static libraries does not work with Math::GSL) #17

Open
@hakonhagland

Description

@hakonhagland

Unfortunately Math::GSL cannot use a static libgsl.a, see leto/math--gsl#225 and this bug report. This is because Math::GSL is building more than one XS module, and each module depends on libgsl.a and libgsl.a maintains static variables. These static variables will get duplicated when linking statically with libgsl.a and cause undefined behavior when the XS modules are combined in a Perl script.

I think this is only a problem for Math::GSL so I wonder if we should provide an option to Alien::GSL to build a shared library (libgsl.so) when doing a shared install? For example something like: use Alien::GSL qw(:shared) would force building a shared library?

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions