mirror of https://github.com/MagicStack/uvloop.git
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 <zchee.io@gmail.com>
This commit is contained in:
parent
6b494bbe90
commit
db70c2be64
2
setup.py
2
setup.py
|
@ -44,7 +44,7 @@ class libuv_build_ext(build_ext):
|
||||||
if not re.search('-O\d', cur_cflags):
|
if not re.search('-O\d', cur_cflags):
|
||||||
cur_cflags += ' -O2'
|
cur_cflags += ' -O2'
|
||||||
|
|
||||||
env['CFLAGS'] = (cur_cflags + ' -fPIC' + env.get('ARCHFLAGS', ''))
|
env['CFLAGS'] = (cur_cflags + ' -fPIC ' + env.get('ARCHFLAGS', ''))
|
||||||
|
|
||||||
j_flag = '-j{}'.format(os.cpu_count() or 1)
|
j_flag = '-j{}'.format(os.cpu_count() or 1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue