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:
Koichi Shiraishi 2016-09-11 19:18:37 +09:00
parent 6b494bbe90
commit db70c2be64
No known key found for this signature in database
GPG Key ID: A71DFD3B4DA7A79B
1 changed files with 1 additions and 1 deletions

View File

@ -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)