Skip to content

Commit dbacc2b

Browse files
committed
setup.py: Call make with CFLAGS=fPIC & O2
1 parent e92e6bf commit dbacc2b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ def build_libuv(self):
5151
check=True)
5252

5353
subprocess.run(['./configure'], cwd=LIBUV_DIR, env=env, check=True)
54-
subprocess.run(['make', j_flag], cwd=LIBUV_DIR, env=env, check=True)
54+
55+
c_flag = "CFLAGS={}".format(env['CFLAGS'])
56+
subprocess.run(['make', j_flag, c_flag],
57+
cwd=LIBUV_DIR, env=env, check=True)
5558

5659
def build_extensions(self):
5760
if self.use_system_libuv:

0 commit comments

Comments
 (0)