]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Set FR specific library path.
authorAlan T. DeKok <aland@freeradius.org>
Mon, 9 Nov 2015 20:27:46 +0000 (15:27 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 9 Nov 2015 20:27:46 +0000 (15:27 -0500)
Because we need to manually look at a library path on El Capitan.
OSX prevents us from loading library paths via the standard
environment variable.

scripts/jlibtool.c

index c2eda6c177b0502bf2dd6de314e0bd9b74ebd1fa..e6f09b7eaa43f749d96bc5f6089bb197729157b4 100644 (file)
@@ -2239,7 +2239,10 @@ static int run_mode(command_t *cmd)
 
                l = "./build/lib/.libs";
                setenv(LD_LIBRARY_PATH_LOCAL, l, 1);
+#ifdef __APPLE__
                setenv("DYLD_FALLBACK_LIBRARY_PATH", l, 1);
+#endif
+               setenv("FR_LIBRARY_PATH", "./build/lib/local/.libs", 1);
                rv = run_command(cmd, cmd->arglist);
                if (rv) goto finish;
        }