Skip to content

Commit

Permalink
Prefer omc libs over system libs
Browse files Browse the repository at this point in the history
This should resolve an issue with /usr/lib being preferred over the
OM-provided version of Sundials (ticket:3893).
  • Loading branch information
sjoelund committed May 18, 2016
1 parent 016c25e commit 50dade9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/SimCode/SimCodeFunctionUtil.mo
Expand Up @@ -1957,7 +1957,7 @@ algorithm
isLinux := stringEq("linux",System.os());
target := Flags.getConfigString(Flags.TARGET);
// please, take care about ordering these libraries, the most specific should have the highest priority
libs2 := str::platform2::platform1::(Settings.getHomeDir(false)+"/.openmodelica/binaries/"+Absyn.pathFirstIdent(path))::(Settings.getInstallationDirectoryPath() + "/lib/" + System.getTriple() + "/omc")::(Settings.getInstallationDirectoryPath() + "/lib/")::{};
libs2 := str::platform2::platform1::(Settings.getHomeDir(false)+"/.openmodelica/binaries/"+Absyn.pathFirstIdent(path))::(Settings.getInstallationDirectoryPath() + "/lib/")::(Settings.getInstallationDirectoryPath() + "/lib/" + System.getTriple() + "/omc")::{};
libs := List.fold2(libs2, generateExtFunctionLibraryDirectoryFlags2, isLinux, target, libs);
then (libs, listReverse(libs2), SOME(resourcesStr));
else (inLibs, {}, NONE());
Expand Down

0 comments on commit 50dade9

Please sign in to comment.