--- SPECS/ocaml.spec.orig 2007-05-04 18:14:51.000000000 -0400 +++ SPECS/ocaml.spec 2007-05-06 18:18:46.000000000 -0400 @@ -101,13 +101,21 @@ %build +%ifarch %{arm} +./configure \ +%else CFLAGS="$RPM_OPT_FLAGS" ./configure \ +%endif -bindir %{_bindir} \ -libdir %{_libdir}/ocaml \ -x11lib %{_libdir} \ -x11include %{_includedir} \ -mandir %{_mandir}/man1 +%ifarch %{arm} +make world +%else make world opt opt.opt +%endif # %{?_smp_mflags} breaks the build (cd emacs; make ocamltags)