summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ocaml/ocaml-cppo.spec4
1 files changed, 3 insertions, 1 deletions
diff --git a/ocaml/ocaml-cppo.spec b/ocaml/ocaml-cppo.spec
index ebdef35..8087520 100644
--- a/ocaml/ocaml-cppo.spec
+++ b/ocaml/ocaml-cppo.spec
@@ -39,6 +39,9 @@ to the robustness of cppo across OCaml versions.
%prep
%setup -q -n %{libname}-%{version}
+sed -i.add-debuginfo \
+ 's/ocamlopt/ocamlopt -g/;s/ocamlc \(-[co]\)/ocamlc -g \1/' \
+ Makefile
%build
@@ -50,7 +53,6 @@ make %{?_smp_mflags} all
%install
-rm -rf $RPM_BUILD_ROOT
%{__install} -d $RPM_BUILD_ROOT%{_bindir}
%{__install} -p cppo $RPM_BUILD_ROOT%{_bindir}/