summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Alexandre Salim <salimma@fedoraproject.org>2014-01-27 23:26:14 +0700
committerMichel Alexandre Salim <salimma@fedoraproject.org>2014-01-27 23:26:14 +0700
commit909231dcc8efa408ce462afd5efc27e2c37af219 (patch)
treefea3399fead869184bb99b30643960989c9efc5f
parentc004477ea3ccfc426d3f9c00640effb82c5daf6d (diff)
downloadspecs-909231dcc8efa408ce462afd5efc27e2c37af219.tar.gz
specs-909231dcc8efa408ce462afd5efc27e2c37af219.tar.xz
specs-909231dcc8efa408ce462afd5efc27e2c37af219.zip
ocaml-cppo: useful debuginfo
-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}/