Skip to content

Commit a929805

Browse files
authored
Merge pull request matplotlib#25156 from anntzer/es
2 parents 5eb3988 + 7e6c915 commit a929805

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

setupext.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,10 @@ def add_flags(cls, ext):
593593
0, str((src_path / 'objs/.libs/libfreetype').with_suffix(
594594
'.lib' if sys.platform == 'win32' else '.a')))
595595
ext.define_macros.append(('FREETYPE_BUILD_TYPE', 'local'))
596+
if sys.platform == 'darwin':
597+
name = ext.name.split('.')[-1]
598+
ext.extra_link_args.append(
599+
f'-Wl,-exported_symbol,_PyInit_{name}')
596600

597601
def do_custom_build(self, env):
598602
# We're using a system freetype

0 commit comments

Comments
 (0)