Add sys/r2env.sh: Set up env for r2 in non-standard loc (#15696)

This commit is contained in:
Khairul Azhar Kasmiran 2019-12-28 19:48:22 +08:00 committed by radare
parent cdbcffe108
commit ec8e8c97e7

6
sys/r2env.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
# Sets up env for programs that use r2 libs, and r2 is installed in a
# non-standard location.
export PKG_CONFIG_PATH="`r2 -H R2_LIBDIR`/pkgconfig${PKG_CONFIG_PATH:+:${PKG_CONFIG_PATH}}"
export LD_LIBRARY_PATH="`r2 -H R2_LIBDIR`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}"