mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-23 05:09:43 +00:00
env.sh: Don't add trailing colons to paths
If $LD_LIBRARY_PATH is originally empty, then it becomes "$pfx/lib:" - but the trailing colon adds the current directory to the path. This breaks horribly if you try to run r2 from a directory that also happens to have a `libc.so.6` in it :P
This commit is contained in:
parent
6843b21435
commit
c3c3b16cd2
10
env.sh
10
env.sh
@ -25,11 +25,11 @@ fi
|
||||
new_env='
|
||||
R2_ENV_IS_SET=1
|
||||
R2_LIBR_PLUGINS=${pfx}/lib/radare2
|
||||
PATH=$pfx/bin:${PATH}
|
||||
LIBRARY_PATH=$pfx/lib:$LIBRARY_PATH
|
||||
LD_LIBRARY_PATH=$pfx/lib:$LD_LIBRARY_PATH
|
||||
DYLD_LIBRARY_PATH=$pfx/lib:$DYLD_LIBRARY_PATH
|
||||
PKG_CONFIG_PATH=$pfx/lib/pkgconfig:$PKG_CONFIG_PATH
|
||||
PATH=$pfx/bin${PATH:+:${PATH}}
|
||||
LIBRARY_PATH=$pfx/lib${LIBRARY_PATH:+:${LIBRARY_PATH}}
|
||||
LD_LIBRARY_PATH=$pfx/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
||||
DYLD_LIBRARY_PATH=$pfx/lib${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}}
|
||||
PKG_CONFIG_PATH=$pfx/lib/pkgconfig${PKG_CONFIG_PATH:+:${PKG_CONFIG_PATH}}
|
||||
'
|
||||
|
||||
shift
|
||||
|
Loading…
Reference in New Issue
Block a user