Thanks to visit codestin.com Credit goes to github.com
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.
1 parent d2494a4 commit 616aa83Copy full SHA for 616aa83
1 file changed
setupext.py
@@ -357,9 +357,6 @@ def add_gd_flags(module):
357
358
def add_ft2font_flags(module):
359
'Add the module flags to ft2font extension'
360
- module.libraries.append('z')
361
- add_base_flags(module)
362
-
363
if not get_pkgconfig(module, 'freetype2'):
364
module.libraries.append('freetype')
365
@@ -376,6 +373,9 @@ def add_ft2font_flags(module):
376
373
p = os.path.join(d, 'freetype2/lib')
377
374
if os.path.exists(p): module.library_dirs.append(p)
378
375
+ module.libraries.append('z')
+ add_base_flags(module)
+
379
if sys.platform == 'win32' and win32_compiler == 'mingw32':
380
module.libraries.append('gw32c')
381
0 commit comments