Keep It Simple, Stupid | |
PerlMonks |
How can I persuade MakeMaker to install a file in $installarchlib/auto/...by markt (Initiate) |
on Sep 29, 2016 at 09:02 UTC ( [id://1172902]=perlquestion: print w/replies, xml ) | Need Help?? |
markt has asked for the wisdom of the Perl Monks concerning the following question: I am using SWIG to wrap functions from a C library (libX.a) and producing a shared object (Y.so) and a Perl module (Y.pm). Neither the library C code nor the library object files are available on the target platform so the shared object is created outwith MakeMaker. The Makefile.PL is written to create the distribution tarball so that the usual rules apply on `make install`. However the shared object is installed in the same directory as the Perl module and Dynaload is unable to find the required symbols. Looking at other Makefie.PL flles from modules that do install a shared object in the correct place there is no explicit mechanism to place such a shared object. The magic seems to be enabled by defining values for LIB (or some such variable). Please could someone tell me where to look in MakeMaker code (whilst I start at the top and go on until the end). TIA
MarkT
Back to
Seekers of Perl Wisdom
|
|