http://www.perlmonks.org?node_id=966123


in reply to possible to bake LD_LIBRARY_PATH in perl(1)?

Hmm, LD_LIBRARY_PATH shows its being used to set Config#ldlibpthname, which sadly, Makefile.PL/Build.PL do not appear to use.

So editing ldlibpthname probably won't work.

But editing lddlflags, ldflags ought to work to add paths which the compiler ought-to bake

Or editing sitecustomize would work to set env vars and perl/cpan/Makefile.PL/Build.PL specific options