Skip to content

Commit c092bfc

Browse files
committed
1 parent bceddba commit c092bfc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

setup.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,15 @@
3535
extra_compile_args.extend(nodebug_opts)
3636
extra_link_args.extend(nodebug_opts)
3737

38+
if not is_mac and not is_win:
39+
extra_link_args.append('-Wl,--version-script=src/Symbol.map')
40+
elif is_mac:
41+
extra_link_args.extend(['-bundle', '-undefined', 'dynamic_lookup'])
42+
3843
module1 = Extension(LAP_MOD_NAME, sources = lap_srcs, \
3944
extra_link_args = extra_link_args, \
4045
extra_compile_args = extra_compile_args)
4146

42-
if not is_mac and not is_win:
43-
extra_link_args.append('-Wl,--version-script=src/Symbol.map')
44-
4547
def get_ex_mod():
4648
if 'NO_PY_EXT' in os.environ:
4749
return None

0 commit comments

Comments
 (0)