From: Arran Cudbard-Bell Date: Wed, 7 Oct 2015 00:39:38 +0000 (-0400) Subject: Formatting X-Git-Tag: release_3_0_11~283 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06fe906ad59da5d62b017bd5ada37f357283a753;p=thirdparty%2Ffreeradius-server.git Formatting --- diff --git a/scripts/jlibtool.c b/scripts/jlibtool.c index ce1d34e8a1c..c2eda6c177b 100644 --- a/scripts/jlibtool.c +++ b/scripts/jlibtool.c @@ -2228,21 +2228,22 @@ static int run_mode(command_t *cmd) strcpy(libpath, cmd->arglist->vals[0]); add_dotlibs(libpath); - l = strrchr(libpath, '/'); - if (!l) l = strrchr(libpath, '\\'); - if (l) { - *l = '\0'; - l = libpath; - } else { - l = ".libs/"; - } + l = strrchr(libpath, '/'); + if (!l) l = strrchr(libpath, '\\'); + if (l) { + *l = '\0'; + l = libpath; + } else { + l = ".libs/"; + } - l = "./build/lib/.libs"; - setenv(LD_LIBRARY_PATH_LOCAL, l, 1); - rv = run_command(cmd, cmd->arglist); + l = "./build/lib/.libs"; + setenv(LD_LIBRARY_PATH_LOCAL, l, 1); + setenv("DYLD_FALLBACK_LIBRARY_PATH", l, 1); + rv = run_command(cmd, cmd->arglist); if (rv) goto finish; } - break; + break; default: break;