Link to libatomic on riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
parent
8faf123679
commit
81330dddd9
12
php.spec
12
php.spec
@ -70,7 +70,7 @@
|
|||||||
Summary: PHP scripting language for creating dynamic web sites
|
Summary: PHP scripting language for creating dynamic web sites
|
||||||
Name: php
|
Name: php
|
||||||
Version: %{upver}%{?rcver:~%{rcver}}
|
Version: %{upver}%{?rcver:~%{rcver}}
|
||||||
Release: 1%{?dist}
|
Release: 1.0.riscv64%{?dist}
|
||||||
# All files licensed under PHP version 3.01, except
|
# All files licensed under PHP version 3.01, except
|
||||||
# Zend is licensed under Zend
|
# Zend is licensed under Zend
|
||||||
# TSRM is licensed under BSD
|
# TSRM is licensed under BSD
|
||||||
@ -160,6 +160,9 @@ BuildRequires: systemtap-sdt-devel
|
|||||||
# used for tests
|
# used for tests
|
||||||
BuildRequires: %{_bindir}/ps
|
BuildRequires: %{_bindir}/ps
|
||||||
BuildRequires: tzdata
|
BuildRequires: tzdata
|
||||||
|
%ifarch riscv64
|
||||||
|
BuildRequires: libatomic
|
||||||
|
%endif
|
||||||
|
|
||||||
%if %{with zts}
|
%if %{with zts}
|
||||||
Provides: php-zts = %{version}-%{release}
|
Provides: php-zts = %{version}-%{release}
|
||||||
@ -819,6 +822,10 @@ cp %{SOURCE50} %{SOURCE51} %{SOURCE53} .
|
|||||||
# Disable LTO
|
# Disable LTO
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
|
|
||||||
|
%ifarch riscv64
|
||||||
|
%define _pkg_extra_ldflags -Wl,--no-as-needed -latomic -Wl,--as-needed
|
||||||
|
%endif
|
||||||
|
|
||||||
# Set build date from https://reproducible-builds.org/specs/source-date-epoch/
|
# Set build date from https://reproducible-builds.org/specs/source-date-epoch/
|
||||||
export SOURCE_DATE_EPOCH=$(date +%s -r NEWS)
|
export SOURCE_DATE_EPOCH=$(date +%s -r NEWS)
|
||||||
export PHP_UNAME=$(uname)
|
export PHP_UNAME=$(uname)
|
||||||
@ -1543,6 +1550,9 @@ systemctl try-restart php-fpm.service >/dev/null 2>&1 || :
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Feb 25 2023 David Abdurachmanov <davidlt@rivosinc.com> - 8.2.3-1.0.riscv64
|
||||||
|
- Link to libatomic on riscv64
|
||||||
|
|
||||||
* Tue Feb 14 2023 Remi Collet <remi@remirepo.net> - 8.2.3-1
|
* Tue Feb 14 2023 Remi Collet <remi@remirepo.net> - 8.2.3-1
|
||||||
- Update to 8.2.3 - http://www.php.net/releases/8_2_3.php
|
- Update to 8.2.3 - http://www.php.net/releases/8_2_3.php
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user