summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolai Merinov <n.merinov@samsung.com>2019-02-12 12:32:15 (GMT)
committerNikolai Merinov <n.merinov@samsung.com>2019-02-12 12:43:46 (GMT)
commit7856a2bfcd1421f39cb6161b623c5efe6401596e (patch)
tree16fac470243cf164b3d56d70cad52044f0b6451c
parent20a6949983416982041dbb08cb7102464b1f2271 (diff)
downloadpython-numpy-sandbox/nmerinov/llvm.zip
python-numpy-sandbox/nmerinov/llvm.tar.gz
python-numpy-sandbox/nmerinov/llvm.tar.bz2
Workaround clang bug #16404sandbox/nmerinov/llvm
-rw-r--r--packaging/python-numpy.spec6
1 files changed, 6 insertions, 0 deletions
diff --git a/packaging/python-numpy.spec b/packaging/python-numpy.spec
index fa4453a..e1ad22e 100644
--- a/packaging/python-numpy.spec
+++ b/packaging/python-numpy.spec
@@ -51,6 +51,12 @@ cp %{SOURCE1001} .
%build
+%ifarch armv7l
+if echo "$CC" | grep clang ; then
+ sed -i -e '/config\.add_extension(.umath/a extra_link_args=["/usr/lib/clang/5.0.2/lib/linux/libclang_rt.builtins-arm.a"],' \
+ numpy/core/setup.py
+fi
+%endif
export CFLAGS="%{optflags} -fno-strict-aliasing"
/usr/bin/python2 setup.py build