diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-25 09:01:10 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-25 09:01:10 +0000 |
commit | aa6ee5ee8b86b4545989968138ded92bdc80f7ff (patch) | |
tree | 2dc1de7aa6d57070e2143ed6b1c159c9075185df /nodejs.spec | |
parent | 330b5715b2d5610d310aa77422fb906c1b5e567b (diff) |
automatic import of nodejs
Diffstat (limited to 'nodejs.spec')
-rw-r--r-- | nodejs.spec | 4 |
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 \ |