My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/interpreters/perl/setup-hook-cross.sh

12 lines
599 B

addPerlLibPath () {
addToSearchPath PERL5LIB $1/lib/perl5/site_perl/@version@
addToSearchPath PERL5LIB $1/lib/perl5/site_perl/cross_perl/@version@
# Adding the arch-specific directory is morally incorrect, as
# miniperl can't load the native modules there. However, it can
# (and sometimes needs to) load and run some of the pure perl
# code there, so we add it anyway. When needed, stubs can be put
# into $1/lib/perl5/site_perl/cross_perl/@version@
addToSearchPath PERL5LIB $1/lib/perl5/site_perl/@version@/@runtimeArch@
}
addEnvHooks "$hostOffset" addPerlLibPath