commit 6382d7bbff9fb8844f9dd469519661ff29534ca0
Author: Jakub Bogusz <[email protected]>
Date:   Wed Jul 22 20:31:16 2015 +0200

    - really disable ocamlopt if not supported (configure sets OCAMLOPT=no 
while Makefiles check with ifdef)

 ocaml-SDL.spec | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/ocaml-SDL.spec b/ocaml-SDL.spec
index e595621..ac1f70f 100644
--- a/ocaml-SDL.spec
+++ b/ocaml-SDL.spec
@@ -72,14 +72,16 @@ cp -f /usr/share/automake/config.* support
 %{__aclocal} -I support
 %{__autoconf}
 %configure
-%{__make}
+%{__make} \
+       %{!?with_ocaml_opt:OCAMLOPT=}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs
 
 %{__make} install \
-       OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
+       OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml \
+       %{!?with_ocaml_opt:OCAMLOPT=}
 
 # ocamlfind-specific, useless in rpm
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/*.owner
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ocaml-SDL.git/commitdiff/6382d7bbff9fb8844f9dd469519661ff29534ca0

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to