From 6382d7bbff9fb8844f9dd469519661ff29534ca0 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Wed, 22 Jul 2015 20:31:16 +0200 Subject: [PATCH] - 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 -- 2.43.0