Use --library-path instead of LD_LIBRARY_PATH.