Currently portage unsets any user defined LD_PRELOAD in save-ebuild-env.sh. But sys-apps/sandbox handles this case just fine in sandbox/sandbox.bashrc. E.g., using "LD_PRELOAD=/usr/lib/libllalloc.so.1.3 emerge ..." will speed up the build time of large C++ applications by 8-10%. (http://locklessinc.com/benchmarks_allocator.shtml) Reproducible: Always
I guess we can filter it inside __preprocess_ebuild_env instead, since that will eliminate any stale LD_PRELOAD values that may exist in environment.bz2 files.