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
This commit is contained in:
Paolo Stivanin 2021-05-20 05:37:07 +00:00 committed by Git OBS Bridge
parent c9f4dd2317
commit 7bd5771d7e
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 19 15:04:03 UTC 2021 - Fridrich Strba <fstrba@suse.com>
- Add -std=gnu99 to fix build with some gcc versions
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Aug 17 10:02:27 UTC 2020 - Dirk Mueller <dmueller@suse.com> Mon Aug 17 10:02:27 UTC 2020 - Dirk Mueller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package json-c # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -96,6 +96,7 @@ autoreconf -fiv
-DCMAKE_BUILD_TYPE=None \ -DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \ -DCMAKE_INSTALL_LIBDIR=%{_libdir} \
-DCMAKE_C_FLAGS=-std=gnu99 \
-DENABLE_THREADING=ON \ -DENABLE_THREADING=ON \
-DENABLE_RDRAND=ON -DENABLE_RDRAND=ON