Skip to content

Commit cbc7e16

Browse files
committed
bindings/python/run.me: refine platform detection.
1 parent 8193cdc commit cbc7e16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bindings/python/run.me

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ if newer("blst_wrap.cpp", "../libblst.a", blst_so):
4646
if sysconfig.get_config_var('MACHDEP') == 'darwin':
4747
cmd = ["c++", "-bundle", "-undefined", "dynamic_lookup",
4848
"-arch", "arm64", "-arch", "x86_64"]
49+
elif blst_so.endswith(".so"):
50+
cmd = ["c++", "-shared", "-Wl,-Bsymbolic"]
4951
else:
5052
cmd = ["c++", "-shared"]
51-
if blst_so.endswith(".so"):
52-
cmd.extend(["-Wl,-Bsymbolic"])
5353
cmd.extend(["-o", blst_so, "-fPIC", "-fvisibility=hidden",
5454
"-I"+sysconfig.get_config_var('INCLUDEPY'), "-I..",
5555
"-O", "-Wall", "blst_wrap.cpp", "../libblst.a"])

0 commit comments

Comments
 (0)