summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nodejs.spec4
1 files changed, 4 insertions, 0 deletions
diff --git a/nodejs.spec b/nodejs.spec
index 1942a75..9c29fce 100644
--- a/nodejs.spec
+++ b/nodejs.spec
@@ -219,6 +219,10 @@ find . -type f -exec sed -i "s~python -c~python3 -c~" {} \;
export CC='%{__cc}'
export CXX='%{__cxx}'
+%ifarch amd64
+export CFLAGS="%{optflags} -mno-avx2"
+export CXXFLAGS="%{optflags} -mno-avx2"
+%endif
export CFLAGS='%{optflags} \
-D_LARGEFILE_SOURCE \
-D_FILE_OFFSET_BITS=64 \