summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-02-14 11:55:15 +0100
committerRemi Collet <remi@php.net>2025-02-14 11:55:15 +0100
commit1336c9f8984942fbc3782f1e6db0a849238ce970 (patch)
treeec8bd0b9ee6df7beac6e76c489ab3b87f1976314
parenteee4ef617924054a2d540365770ca8ab249aebfb (diff)
workaround build failure with GCC 15 reported asHEADmaster
https://github.com/nginx/njs/issues/857 workaround build failure with GCC 15 reported as https://github.com/nginx/njs/issues/857
-rw-r--r--njs.spec8
1 files changed, 7 insertions, 1 deletions
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 <remi@remirepo.net> - 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 <remi@remirepo.net> - 0.8.9-1
- update to 0.8.9