Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 17566b2

Browse files
committed
Only build local FreeType statically.
We don't need shared FreeType, so save a bit of compile/link time by not creating it.
1 parent 9c1f752 commit 17566b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setupext.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,8 @@ def do_custom_build(self, env):
589589
env = {**env, "CFLAGS": "{} -fPIC".format(env.get("CFLAGS", ""))}
590590
subprocess.check_call(
591591
["./configure", "--with-zlib=no", "--with-bzip2=no",
592-
"--with-png=no", "--with-harfbuzz=no"],
592+
"--with-png=no", "--with-harfbuzz=no", "--enable-static",
593+
"--disable-shared"],
593594
env=env, cwd=src_path)
594595
subprocess.check_call(["make"], env=env, cwd=src_path)
595596
else: # compilation on windows

0 commit comments

Comments
 (0)