[packages/ocaml-menhir] - fix non-opt build

baggins baggins at pld-linux.org
Tue Jun 6 19:28:23 CEST 2017


commit 460009a4b02376dc8e406707f6a4acf58ae34ba8
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Jun 6 19:28:08 2017 +0200

    - fix non-opt build

 ocaml-menhir.spec | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/ocaml-menhir.spec b/ocaml-menhir.spec
index 46392e3..d1fc14f 100644
--- a/ocaml-menhir.spec
+++ b/ocaml-menhir.spec
@@ -60,13 +60,17 @@ menhir.
 %patch0 -p1
 
 %build
-%{__make} PREFIX=%{_prefix} USE_OCAMLFIND=true all
+%{__make} all \
+	%{!?with_ocaml_opt:TARGET=byte} \
+	PREFIX=%{_prefix} \
+	USE_OCAMLFIND=true
 
 %install
 rm -rf $RPM_BUILD_ROOT
 export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
 install -d $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
 %{__make} install \
+	%{!?with_ocaml_opt:TARGET=byte} \
 	PREFIX=%{_prefix} \
 	DESTDIR=$RPM_BUILD_ROOT
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ocaml-menhir.git/commitdiff/460009a4b02376dc8e406707f6a4acf58ae34ba8



More information about the pld-cvs-commit mailing list