We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5eb3988 + 7e6c915 commit a929805Copy full SHA for a929805
setupext.py
@@ -593,6 +593,10 @@ def add_flags(cls, ext):
593
0, str((src_path / 'objs/.libs/libfreetype').with_suffix(
594
'.lib' if sys.platform == 'win32' else '.a')))
595
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}')
600
601
def do_custom_build(self, env):
602
# We're using a system freetype
0 commit comments