mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-23 13:19:54 +00:00
Priorize r2pm pkgconfig path before env var and r2 prefix
* Makes r2poke build more clean
This commit is contained in:
parent
208681894b
commit
3d7845f0fd
@ -363,7 +363,7 @@ static void r2pm_setenv(void) {
|
|||||||
char *pkgcfg = r_sys_getenv ("PKG_CONFIG_PATH");
|
char *pkgcfg = r_sys_getenv ("PKG_CONFIG_PATH");
|
||||||
char *r2pm_pkgcfg = r_xdg_datadir ("prefix/lib/pkgconfig");
|
char *r2pm_pkgcfg = r_xdg_datadir ("prefix/lib/pkgconfig");
|
||||||
if (R_STR_ISNOTEMPTY (pkgcfg)) {
|
if (R_STR_ISNOTEMPTY (pkgcfg)) {
|
||||||
char *pcp = r_str_newf ("%s:%s:%s", R2_PREFIX "/lib/pkgconfig", r2pm_pkgcfg, pkgcfg);
|
char *pcp = r_str_newf ("%s:%s:%s", r2pm_pkgcfg, R2_PREFIX "/lib/pkgconfig", pkgcfg);
|
||||||
r_sys_setenv ("PKG_CONFIG_PATH", pcp);
|
r_sys_setenv ("PKG_CONFIG_PATH", pcp);
|
||||||
free (pcp);
|
free (pcp);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user