think that this could be done by specifying LDFLAGS="-R$ORIGIN/../lib" but while it does work for C, I'm not able to do this with Perl/CPAN. How can I do?
It works for perl too, simply export LDFLAGS=... or edit Makefile.PL and add it to ExtUtils::MakeMaker::WriteMakefile
Perl/"CPAN" does not override this, so export LDFLAGS= or any other linker/compiler options should just work, every time :)
http://www.linuxsampler.org/msys.html
Re: Installing iodbc 0.1 via CPAN (or other means) on Mac OS 10.6
So you could, change Rpath after the fact
set it through ldflags
link against static versions of libxml/libxslt/libexpat...
$config{LIBS}='-l...libxml2.a -l...libiconv.a'; $config{INC}='-I...include/libxml2'; $config{DEFINE} =' -DLIBXML_STATIC '; WriteMakefile( %INFOS, %config, );
Or when setting up your development enviroment, mirror your target directory structure with symbolic links
In reply to Re: Editing RPATH of Perl module XML::Parser
by Anonymous Monk
in thread Editing RPATH of Perl module XML::Parser
by virtualdj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |