From 1336c9f8984942fbc3782f1e6db0a849238ce970 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 14 Feb 2025 11:55:15 +0100 Subject: workaround build failure with GCC 15 reported as https://github.com/nginx/njs/issues/857 workaround build failure with GCC 15 reported as https://github.com/nginx/njs/issues/857 --- njs.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/njs.spec b/njs.spec index 1c595cf..f6eee2c 100644 --- a/njs.spec +++ b/njs.spec @@ -30,7 +30,7 @@ Name: %{project} Summary: NGINX JavaScript Version: 0.8.9 -Release: 1%{?dist} +Release: 2%{?dist} License: BSD-2-Clause AND MIT URL: https://github.com/%{gh_owner}/%{project} @@ -93,6 +93,8 @@ pushd quickjs CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" %make_build libquickjs.a popd +export CFLAGS="%{optflags} -Wno-error=unterminated-string-initialization" + ./configure \ --with-quickjs \ --cc-opt="$RPM_OPT_FLAGS -Iquickjs" \ @@ -159,6 +161,10 @@ make test %{?_smp_mflags} %changelog +* Fri Feb 14 2025 Remi Collet - 0.8.9-2 +- workaround build failure with GCC 15 reported as + https://github.com/nginx/njs/issues/857 + * Tue Jan 14 2025 Remi Collet - 0.8.9-1 - update to 0.8.9 -- cgit