audio/ncspot: Improve LD_LIBRARY_PATH handling.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Gene Carlson 2023-02-17 17:43:54 +09:00 committed by Willy Sudiarto Raharjo
parent fec25b1c10
commit 3100ab21c2
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -147,7 +147,11 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
export PATH="/opt/rust16/bin:$PATH"
export LD_LIBRARY_PATH="/opt/rust16/lib$LIBDIRSUFFIX:$LD_LIBRARY_PATH"
if [ -z "$LD_LIBRARY_PATH" ]; then
export LD_LIBRARY_PATH="/opt/rust16/lib$LIBDIRSUFFIX"
else
export LD_LIBRARY_PATH="/opt/rust16/lib$LIBDIRSUFFIX:$LD_LIBRARY_PATH"
fi
CARGO_HOME=.cargo \
CFLAGS="$SLKCFLAGS" \