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:
2023-04-12 18:23:21 +00:00
committed by Git OBS Bridge
parent 881a9f50bc
commit 01e4aa2e83
2 changed files with 14 additions and 3 deletions

View File

@@ -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>

View File

@@ -25,7 +25,13 @@ License: MIT
URL: https://bellard.org/quickjs/
Source0: https://bellard.org/quickjs/%{name}-%{ver}.tar.xz
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
%description
@@ -52,10 +58,10 @@ LDFLAGS += %{optflags}
EOF
%build
%make_build prefix=%{_prefix}
%make_build %{?compiler} prefix=%{_prefix}
%install
%make_install prefix=%{_prefix}
%make_install %{?compiler} prefix=%{_prefix}
#remove extraneous binary
rm -f %{buildroot}%{_prefix}/lib/quickjs/libquickjs.lto.a