]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Formatting
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 7 Oct 2015 00:39:38 +0000 (20:39 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 7 Oct 2015 23:19:02 +0000 (19:19 -0400)
scripts/jlibtool.c

index ce1d34e8a1cb8595f7e14153ec3f49c8ae565ff0..c2eda6c177b0502bf2dd6de314e0bd9b74ebd1fa 100644 (file)
@@ -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;