summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nodejs.spec8
1 files changed, 4 insertions, 4 deletions
diff --git a/nodejs.spec b/nodejs.spec
index 657deb0..a797ca0 100644
--- a/nodejs.spec
+++ b/nodejs.spec
@@ -219,10 +219,6 @@ find . -type f -exec sed -i "s~python -c~python3 -c~" {} \;
export CC='%{__cc}'
export CXX='%{__cxx}'
-%ifarch x86_64
-export CFLAGS="%{optflags} -mno-avx2"
-export CXXFLAGS="%{optflags} -mno-avx2"
-%endif
export CFLAGS='%{optflags} \
-D_LARGEFILE_SOURCE \
-D_FILE_OFFSET_BITS=64 \
@@ -233,6 +229,10 @@ export CXXFLAGS='%{optflags} \
-D_FILE_OFFSET_BITS=64 \
-DZLIB_CONST \
-fno-delete-null-pointer-checks'
+%ifarch x86_64
+export CFLAGS="%{CFLAGS} -mno-avx2"
+export CXXFLAGS="%{CXXFLAGS} -mno-avx2"
+%endif
export CFLAGS="$(echo ${CFLAGS} | tr '\n\\' ' ')"
export CXXFLAGS="$(echo ${CXXFLAGS} | tr '\n\\' ' ')"