Page 1 of 1

PerlMagick fails to link against libperl.a

Posted: 2014-05-02T10:13:35-07:00
by jeteve
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.