diff --git a/ocaml-mccs-1.1-c++-flags.patch b/ocaml-mccs-1.1-c++-flags.patch new file mode 100644 index 0000000..b8b9c0a --- /dev/null +++ b/ocaml-mccs-1.1-c++-flags.patch @@ -0,0 +1,11 @@ +--- ocaml-mccs-1.1-11/src/dune 2019-12-11 16:55:17.000000000 +0000 ++++ ocaml-mccs-1.1-11.new/src/dune 2020-04-22 12:56:05.001005113 +0100 +@@ -6,7 +6,7 @@ + (public_name mccs) + (modules :standard \ context_flags) + (cxx_flags +- :standard ++ -fPIC -O2 -g + -I + . + (:include cxxflags.sexp)) diff --git a/ocaml-mccs.spec b/ocaml-mccs.spec index 31f17bc..38d66b2 100644 --- a/ocaml-mccs.spec +++ b/ocaml-mccs.spec @@ -16,6 +16,10 @@ URL: https://github.com/AltGr/ocaml-mccs # Upstream's use of a '+' instead of a '.' makes this hard to use a macro. Source0: https://github.com/AltGr/ocaml-mccs/archive/%{version}+%{extraver}/%{name}-%{version}-%{extraver}.tar.gz +# Hacky workaround for: +# https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/M2VM5DNB7HSAJIFDGT4WAIZDA5JPE5KM/ +Patch1: ocaml-mccs-1.1-c++-flags.patch + BuildRequires: ocaml BuildRequires: ocaml-dune BuildRequires: gcc, gcc-c++ @@ -43,10 +47,10 @@ The %{name}-devel package contains libraries and signature files for developing applications that use %{name}. %prep -%autosetup -n %{name}-%{version}-%{extraver} +%autosetup -n %{name}-%{version}-%{extraver} -p1 %build -dune build -p mccs %{?_smp_mflags} +dune build -p mccs %install # This is an opam dependency. Tragically it means we must manually install,