From db70c2be6459f28df477a3ea8630029bc845b25f Mon Sep 17 00:00:00 2001 From: Koichi Shiraishi Date: Sun, 11 Sep 2016 19:18:37 +0900 Subject: [PATCH] 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 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index d7d4a88..ef49af8 100644 --- a/setup.py +++ b/setup.py @@ -44,7 +44,7 @@ class libuv_build_ext(build_ext): if not re.search('-O\d', cur_cflags): 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)