From 7bd5771d7e631a3351059f2326babdfd5fe451806f36846cc70b21fa704e9d8c Mon Sep 17 00:00:00 2001 From: Paolo Stivanin Date: Thu, 20 May 2021 05:37:07 +0000 Subject: [PATCH] Accepting request 894379 from home:fstrba Fix sle12 build OBS-URL: https://build.opensuse.org/request/show/894379 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/json-c?expand=0&rev=40 --- json-c.changes | 5 +++++ json-c.spec | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/json-c.changes b/json-c.changes index 70d90ad..c88577c 100644 --- a/json-c.changes +++ b/json-c.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 19 15:04:03 UTC 2021 - Fridrich Strba + +- Add -std=gnu99 to fix build with some gcc versions + ------------------------------------------------------------------- Mon Aug 17 10:02:27 UTC 2020 - Dirk Mueller diff --git a/json-c.spec b/json-c.spec index 00a829d..bc2eeda 100644 --- a/json-c.spec +++ b/json-c.spec @@ -1,7 +1,7 @@ # # spec file for package json-c # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -96,6 +96,7 @@ autoreconf -fiv -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_INSTALL_LIBDIR=%{_libdir} \ + -DCMAKE_C_FLAGS=-std=gnu99 \ -DENABLE_THREADING=ON \ -DENABLE_RDRAND=ON