]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
allow FR_LIBRARY_PATH to pass through, if it's already set
authorAlan T. DeKok <aland@freeradius.org>
Thu, 6 Apr 2023 17:00:07 +0000 (13:00 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 6 Apr 2023 17:00:07 +0000 (13:00 -0400)
scripts/jlibtool.c

index 54e805169e5cd153a8dcdad55b5263a9b971b35d..77b7db21c4c39ced2f4e9bb341e5826ecb58fa60 100644 (file)
@@ -2254,9 +2254,9 @@ static int run_mode(command_t *cmd)
                setenv("DYLD_FALLBACK_LIBRARY_PATH", l, 1);
 #endif
 
-               l = getenv("FR_LIBRARY_PATH");
-               if (!l) l = "./build/lib/local/.libs";
-               setenv("FR_LIBRARY_PATH", l, 1);
+               if (!getenv("FR_LIBRARY_PATH")) {
+                       setenv("FR_LIBRARY_PATH", "./build/lib/local/.libs", 1);
+               }
 
                rv = run_command(cmd, cmd->arglist);
                if (rv) goto finish;