mirror of
https://src.fedoraproject.org/rpms/nodejs18.git
synced 2024-11-28 11:06:08 +00:00
Merge branch '12'
This commit is contained in:
commit
0fa0c255b8
1 changed files with 10 additions and 3 deletions
13
nodejs.spec
13
nodejs.spec
|
@ -259,7 +259,8 @@ Summary: Node.js and v8 libraries
|
||||||
Provides: libv8.so.%{v8_major}()(64bit)
|
Provides: libv8.so.%{v8_major}()(64bit)
|
||||||
Provides: libv8_libbase.so.%{v8_major}()(64bit)
|
Provides: libv8_libbase.so.%{v8_major}()(64bit)
|
||||||
Provides: libv8_libplatform.so.%{v8_major}()(64bit)
|
Provides: libv8_libplatform.so.%{v8_major}()(64bit)
|
||||||
%else # 32-bits
|
%else
|
||||||
|
# 32-bits
|
||||||
Provides: libv8.so.%{v8_major}
|
Provides: libv8.so.%{v8_major}
|
||||||
Provides: libv8_libbase.so.%{v8_major}
|
Provides: libv8_libbase.so.%{v8_major}
|
||||||
Provides: libv8_libplatform.so.%{v8_major}
|
Provides: libv8_libplatform.so.%{v8_major}
|
||||||
|
@ -335,15 +336,21 @@ sed -i "s~which('python')~which('python2')~" configure
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
|
%ifarch s390 s390x %{arm} %ix86
|
||||||
|
# Decrease debuginfo verbosity to reduce memory consumption during final
|
||||||
|
# library linking
|
||||||
|
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
|
||||||
|
%endif
|
||||||
|
|
||||||
# build with debugging symbols and add defines from libuv (#892601)
|
# build with debugging symbols and add defines from libuv (#892601)
|
||||||
# Node's v8 breaks with GCC 6 because of incorrect usage of methods on
|
# Node's v8 breaks with GCC 6 because of incorrect usage of methods on
|
||||||
# NULL objects. We need to pass -fno-delete-null-pointer-checks
|
# NULL objects. We need to pass -fno-delete-null-pointer-checks
|
||||||
export CFLAGS='%{optflags} -g \
|
export CFLAGS='%{optflags} \
|
||||||
-D_LARGEFILE_SOURCE \
|
-D_LARGEFILE_SOURCE \
|
||||||
-D_FILE_OFFSET_BITS=64 \
|
-D_FILE_OFFSET_BITS=64 \
|
||||||
-DZLIB_CONST \
|
-DZLIB_CONST \
|
||||||
-fno-delete-null-pointer-checks'
|
-fno-delete-null-pointer-checks'
|
||||||
export CXXFLAGS='%{optflags} -g \
|
export CXXFLAGS='%{optflags} \
|
||||||
-D_LARGEFILE_SOURCE \
|
-D_LARGEFILE_SOURCE \
|
||||||
-D_FILE_OFFSET_BITS=64 \
|
-D_FILE_OFFSET_BITS=64 \
|
||||||
-DZLIB_CONST \
|
-DZLIB_CONST \
|
||||||
|
|
Loading…
Reference in a new issue