Skip to content

Commit a85864d

Browse files
authored
Fix platform-specific nrnmech library path (#38)
* Use archdir instead of archdir/.libs * Also fix MacOS suffix
1 parent 9dd7045 commit a85864d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

fast/t2.hoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ sf = new StringFunctions()
66
{sscanf(nrnversion(8), "%[^-]", arch)}
77
if (unix_mac_pc() == 3) { // mingw
88
sprint(s1, "%s/demo/release/nrnmech.dll", neuronhome())
9-
}else{
10-
sprint(s1, "%s/demo/release/%s/.libs/libnrnmech.so", neuronhome(), arch)
9+
} else if (unix_mac_pc() == 4) { // Darwin
10+
sprint(s1, "%s/demo/release/%s/libnrnmech.dylib", neuronhome(), arch)
11+
} else {
12+
sprint(s1, "%s/demo/release/%s/libnrnmech.so", neuronhome(), arch)
1113
}
1214
//{printf("|%s|\n", s1)}
1315
b = nrn_load_dll(s1)

0 commit comments

Comments
 (0)