PerlMagick fails to link against libperl.a

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
jeteve
Posts: 2
Joined: 2014-05-02T10:09:28-07:00
Authentication code: 6789

PerlMagick fails to link against libperl.a

Post by jeteve » 2014-05-02T10:13:35-07:00

Hi all,

I'm building image magic under Perlbrew, and it won't link against libperl.a. I get messages like:

/usr/bin/ld: /home/jerome/perl5/perlbrew/perls/perl-5.16.3/lib/5.16.3/x86_64-linux/CORE/libperl.a(op.o): relocation R_X86_64_32S against `PL_sv_yes' can not be used when making a shared object; recompile with -fPIC


I know the cure is to build my perl with perlbrew V -D useshrplib , but that would be much nicer if PerlMagick could link correctly against libperl.a (instead of requiring libperl.so)

Any options I should give to ./configure to enable that?

Cheers,

Jerome.

Post Reply