Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
12 lines
599 B
Bash
12 lines
599 B
Bash
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
|