diff options
author | 2020-10-28 03:42:30 +0000 | |
---|---|---|
committer | 2020-10-28 03:42:30 +0000 | |
commit | e0a7cddd027725bad4894a63671bdbf12b4eec43 (patch) | |
tree | 135e3caae16661602c95acc64a6bd590c31fa674 /dev-ml/ocamlsdl/files/ocamlsdl-0.9.1-ocamlopt.patch | |
parent | dev-ml/ocaml-autoconf: ppc64 keyworded (bug #748576) (diff) | |
download | gentoo-e0a7cddd027725bad4894a63671bdbf12b4eec43.tar.gz gentoo-e0a7cddd027725bad4894a63671bdbf12b4eec43.tar.bz2 gentoo-e0a7cddd027725bad4894a63671bdbf12b4eec43.zip |
dev-ml/ocamlsdl: fix OCaml 4.09.0 build
Closes: https://bugs.gentoo.org/704364
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-ml/ocamlsdl/files/ocamlsdl-0.9.1-ocamlopt.patch')
-rw-r--r-- | dev-ml/ocamlsdl/files/ocamlsdl-0.9.1-ocamlopt.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-ml/ocamlsdl/files/ocamlsdl-0.9.1-ocamlopt.patch b/dev-ml/ocamlsdl/files/ocamlsdl-0.9.1-ocamlopt.patch new file mode 100644 index 000000000000..603654dceffa --- /dev/null +++ b/dev-ml/ocamlsdl/files/ocamlsdl-0.9.1-ocamlopt.patch @@ -0,0 +1,22 @@ +Index: ocamlsdl-0.9.1/src/Makefile +=================================================================== +--- ocamlsdl-0.9.1.orig/src/Makefile ++++ ocamlsdl-0.9.1/src/Makefile +@@ -17,7 +17,7 @@ gfx_MODULES = sdlgfx + + TARGETS = sdl.cma $(patsubst %,sdl%.cma,$(PARTS)) + TARGETS += libsdlstub.$(A) $(patsubst %,libsdl%stub.$(A),$(PARTS)) +-ifdef OCAMLOPT ++ifneq ($(OCAMLOPT),no) + TARGETS += sdl.cmxa $(patsubst %,sdl%.cmxa,$(PARTS)) + endif + +@@ -87,7 +87,7 @@ ifdef OCAMLFIND + install-findlib : + $(OCAMLFIND) install sdl ../META \ + *.cma lib*.$(A) *.cmi *.mli \ +- $(if $(OCAMLOPT),*.cmxa sdl*.$(A) *.cmx) \ ++ $(if $(filter-out $(OCAMLOPT),no),*.cmxa sdl*.$(A) *.cmx) \ + $(if $(OCAMLMKLIB),dll*.so) + ifeq ($(PLATFORM),Apple) + $(RANLIB) $$($(OCAMLFIND) printconf destdir)/sdl/*.$(A) |