This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Why empty in LD_LIBRARY_PATH be interpreted as `use the current directory`?
- From: Paul Smith <psmith at gnu dot org>
- To: ronyweng <ronyweng at synology dot com>, libc-help at sourceware dot org
- Date: Wed, 08 May 2019 11:03:17 -0400
- Subject: Re: Why empty in LD_LIBRARY_PATH be interpreted as `use the current directory`?
- References: <c7f28a43-9df3-45c5-b73a-91376ab25e72@Mail>
- Reply-to: psmith at gnu dot org
On Wed, 2019-05-08 at 15:20 +0800, ronyweng wrote:
> LD_LIBRARY_PATH="${GVM_OVERLAY_PREFIX}/lib:${LD_LIBRARY_PATH}"
This should be written as:
LD_LIBRARY_PATH="${GVM_OVERLAY_PREFIX}/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"