Subject: | Shouldn't Makefile.PL use $Config{perllibs} instead of $Config{libs}? |
Hello,
XML::LibXSLT's Makefile.PL does
$config{LIBS}.=' '.$Config{libs};
Thus it appends to the gcc command all libraries needed by perl _and_ by
extensions. Wouldn't it be more correct to use $Config{perllibs}? The
man Config says
"perllibs"
From End.U:
The list of libraries needed by Perl only (any libraries
needed by
extensions only will by dropped, if using dynamic loading).
We've hit the issue when trying to install XML::LibXSLT on OpenShift:
https://bugzilla.redhat.com/show_bug.cgi?id=905369
Basically, the $Config{libs} contains -lgdbm on RHEL 6 but that is not
installed by default (nor by perl-devel). I've then opened bugzilla
against RHEL 6 https://bugzilla.redhat.com/show_bug.cgi?id=905482 to
address that but in offline communication, usage of perllibs was suggested.
I understand that this is to certain extend a packaging issue within
RHEL but on the other hand, if XML::LibXSLT does not need the libraries
needed by the extensions only to build, it might get away with perllibs,
instead of libs.