Skip to content

Commit db70c2b

Browse files
committed
setup.py: add missing space after '-fPIC' for ARCHFLAGS
- Basically, if users want to set ARCHFLAGS, maybe run the ARCHFLAGS='-arch x86_64' python setup.py install but it will define of CFLAGS to CFLAGS=' -O2 -fPIC-arch x86_64' Needs one space after '-fPIC' Signed-off-by: Koichi Shiraishi <[email protected]>
1 parent 6b494bb commit db70c2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def build_libuv(self):
4444
if not re.search('-O\d', cur_cflags):
4545
cur_cflags += ' -O2'
4646

47-
env['CFLAGS'] = (cur_cflags + ' -fPIC' + env.get('ARCHFLAGS', ''))
47+
env['CFLAGS'] = (cur_cflags + ' -fPIC ' + env.get('ARCHFLAGS', ''))
4848

4949
j_flag = '-j{}'.format(os.cpu_count() or 1)
5050

0 commit comments

Comments
 (0)