libhadoop calls dlopen to load libsnappy.so and libz.so. These libraries can be bundled in the $HADOOP_ROOT/lib/native directory. For example, the -Dbundle.snappy build option copies libsnappy.so to this directory. However, snappy can't be loaded from this directory unless LD_LIBRARY_PATH is set to include this directory.
Can we make this configuration "just work" without needing to rely on LD_LIBRARY_PATH?