[apron] Ensure GNU extensions are enabled to fix build failure.
Jerry James
jjames at fedoraproject.org
Fri Apr 18 14:46:03 UTC 2014
commit 36b230e772af886d3c5663aef275ca258a8ae4bb
Author: Jerry James <jamesjer at betterlinux.com>
Date: Fri Apr 18 08:45:41 2014 -0600
Ensure GNU extensions are enabled to fix build failure.
apron.spec | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/apron.spec b/apron.spec
index 3eaa522..560fa2b 100644
--- a/apron.spec
+++ b/apron.spec
@@ -94,6 +94,7 @@ sed -e "s|^# HAS_CPP.*|HAS_CPP = 1|" \
-e "s|^PPL_PREFIX =.*|PPL_PREFIX=%{_prefix}|" \
-e "s|^-fPIC -O3 -DNDEBUG|$RPM_OPT_FLAGS -fPIC -DNDEBUG -Wl,--as-needed|" \
-e "s|^-fPIC -g -O0|$RPM_OPT_FLAGS -fPIC -Wl,--as-needed|" \
+ -e "s|-std=c99|-std=gnu99 -D_GNU_SOURCE|" \
%if !%opt
-e "s|^HAS_OCAMLOPT.*|# HAS_OCAMLOPT = 1|" \
-e "s|\.opt||" \
@@ -104,6 +105,7 @@ sed -e "s|^# HAS_CPP.*|HAS_CPP = 1|" \
sed -e "s|\$(CAMLIDL_PREFIX)/lib/ocaml|%{_libdir}/ocaml|g" \
-e "s|\$(MLGMPIDL_PREFIX)/include|\$(MLGMPIDL_PREFIX)|g" \
-e "s|\$(MLGMPIDL_PREFIX)/lib|\$(MLGMPIDL_PREFIX)|g" \
+ -e "s|-std=c99|-std=gnu99 -D_GNU_SOURCE|" \
-i Makefile box/Makefile examples/Makefile mlapronidl/Makefile \
newpolka/Makefile octagons/Makefile ppl/Makefile products/Makefile \
test/Makefile
@@ -228,6 +230,9 @@ done
%{_libdir}/ocaml/%{name}/*.mli
%changelog
+* Fri Apr 18 2014 Jerry James <loganjerry at gmail.com> - 0.9.10-15
+- Ensure GNU extensions are enabled to fix build failure
+
* Tue Apr 15 2014 Richard W.M. Jones <rjones at redhat.com> - 0.9.10-15
- Remove ocaml_arches macro (RHBZ#1087794).
More information about the scm-commits
mailing list