Preserve LD_LIBRARY_PATH when using the 'env' command
authorHal Finkel <hfinkel@anl.gov>
Wed, 3 Dec 2014 08:19:17 +0000 (08:19 +0000)
committerHal Finkel <hfinkel@anl.gov>
Wed, 3 Dec 2014 08:19:17 +0000 (08:19 +0000)
commit7c0d61eaaf0bcf5a97beda4283a44448e8d609fe
tree2d4e41239149c68226fb4200efe6eb626f17afd3
parentf02c92489abc5f9eff3397c8916955cb0fb6a7ef
Preserve LD_LIBRARY_PATH when using the 'env' command

In many Linux environments (and similar), just-built applications won't run
correctly without making use of the current LD_LIBRARY_PATH environmental
variable in order to find dynamic libraries. Propagate it through the 'env'
command (hopefully this works on all platforms).

llvm-svn: 223219
clang/test/Driver/env.c