Accepting request 1077776 from Kernel:tools
- Requires at least gcc 7 to get stdatomic.h OBS-URL: https://build.opensuse.org/request/show/1077776 OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/quickjs?expand=0&rev=3
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 6 17:32:39 UTC 2023 - Michal Suchanek <msuchanek@suse.com>
|
||||||
|
|
||||||
|
- Requires at least gcc 7 to get stdatomic.h
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Mar 27 19:38:00 UTC 2021 - Avindra Goolcharan <avindra@opensuse.org>
|
Sat Mar 27 19:38:00 UTC 2021 - Avindra Goolcharan <avindra@opensuse.org>
|
||||||
|
|
||||||
|
12
quickjs.spec
12
quickjs.spec
@@ -25,7 +25,13 @@ License: MIT
|
|||||||
URL: https://bellard.org/quickjs/
|
URL: https://bellard.org/quickjs/
|
||||||
Source0: https://bellard.org/quickjs/%{name}-%{ver}.tar.xz
|
Source0: https://bellard.org/quickjs/%{name}-%{ver}.tar.xz
|
||||||
Source10: quickjs-rpmlintrc
|
Source10: quickjs-rpmlintrc
|
||||||
BuildRequires: c_compiler
|
%if 0%{?suse_version} && 0%{?suse_version} < 1500
|
||||||
|
# /usr/include/c++/12/stdatomic.h
|
||||||
|
BuildRequires: gcc7-c++
|
||||||
|
%define compiler CC=gcc-7
|
||||||
|
%else
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
%endif
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -52,10 +58,10 @@ LDFLAGS += %{optflags}
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%make_build prefix=%{_prefix}
|
%make_build %{?compiler} prefix=%{_prefix}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install prefix=%{_prefix}
|
%make_install %{?compiler} prefix=%{_prefix}
|
||||||
#remove extraneous binary
|
#remove extraneous binary
|
||||||
rm -f %{buildroot}%{_prefix}/lib/quickjs/libquickjs.lto.a
|
rm -f %{buildroot}%{_prefix}/lib/quickjs/libquickjs.lto.a
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user