diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-06-25 09:46:27 +0000 | 
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-06-25 09:46:27 +0000 | 
| commit | ce6e6dd68064ed5348c2fbc19fb2a56b8af95e30 (patch) | |
| tree | a8dbab22b5ad4c2c7e8b4ce41fd0834ce9f6f656 | |
| parent | c6fd7663d25874fed13799a4111e9d89f12302bf (diff) | |
automatic import of nodejs
| -rw-r--r-- | nodejs.spec | 8 | 
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\\' '  ')"  | 
