in reply to Editing RPATH of Perl module XML::Parser
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Editing RPATH of Perl module XML::Parser
by virtualdj (Initiate) on Dec 13, 2011 at 19:33 UTC | |
by Eliya (Vicar) on Dec 13, 2011 at 20:11 UTC | |
by virtualdj (Initiate) on Dec 14, 2011 at 18:20 UTC | |
by Eliya (Vicar) on Dec 14, 2011 at 19:22 UTC | |
by virtualdj (Initiate) on Dec 15, 2011 at 17:14 UTC | |
by Anonymous Monk on Dec 14, 2011 at 19:29 UTC |