File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -220,10 +220,13 @@ object ScalaZ3Build extends Build {
220
220
val frameworkPath = " /System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers"
221
221
222
222
exec(" install_name_tool -id @loader_path/" + z3Name+ " " + z3BinFilePath.absolutePath, s)
223
+ exec(" install_name_tool -id @loader_path/" + javaZ3Name+ " " + javaZ3BinFilePath.absolutePath, s)
224
+ // make the dependency to z3 be relative to the caller's location
225
+ exec(" install_name_tool -change " + z3Name+ " @loader_path/" + z3Name+ " " + javaZ3BinFilePath.absolutePath, s)
223
226
224
227
exec(" gcc -std=gnu89 -o " + libBinFilePath.absolutePath + " " +
225
228
" -dynamiclib" + " " +
226
- " -install_name " + extractDir(cs) + soName + " " +
229
+ " -install_name @loader_path/ " + soName + " " +
227
230
" -I" + jdkIncludePath.absolutePath + " " +
228
231
" -I" + jdkMacIncludePath.absolutePath + " " +
229
232
" -I" + frameworkPath + " " +
You can’t perform that action at this time.
0 commit comments