diff options
author | Gene Carlson <kvngncrlsn@gmail.com> | 2023-02-17 17:43:54 +0900 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-02-18 10:06:39 +0700 |
commit | 3100ab21c24ce6e06420accf7e6dd4adbb6ee919 (patch) | |
tree | f568a89223055af3b40ff18c1388663b3661288d /audio | |
parent | fec25b1c107ebf3852684d629a59973895001d4c (diff) |
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>
Diffstat (limited to 'audio')
-rw-r--r-- | audio/ncspot/ncspot.SlackBuild | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/audio/ncspot/ncspot.SlackBuild b/audio/ncspot/ncspot.SlackBuild index 0716c83c1a624..3801ad58c5c6e 100644 --- a/audio/ncspot/ncspot.SlackBuild +++ b/audio/ncspot/ncspot.SlackBuild @@ -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" \ |