diff --git a/quickjs.changes b/quickjs.changes index 1d6e43f..b7069d1 100644 --- a/quickjs.changes +++ b/quickjs.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 6 17:32:39 UTC 2023 - Michal Suchanek + +- Requires at least gcc 7 to get stdatomic.h + ------------------------------------------------------------------- Sat Mar 27 19:38:00 UTC 2021 - Avindra Goolcharan diff --git a/quickjs.spec b/quickjs.spec index c84072f..10a2a19 100644 --- a/quickjs.spec +++ b/quickjs.spec @@ -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