/[gentoo-x86]/dev-ml/ocamlsdl/files/ocamlopt.patch
Gentoo

Contents of /dev-ml/ocamlsdl/files/ocamlopt.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Tue Mar 17 15:58:49 2015 UTC (5 years ago) by aballier
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-diff
fix build without ocamlopt, bug #543532

Signed-off-by: aballier@gentoo.org
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 160F534A)

1 Index: ocamlsdl-0.9.1/src/Makefile
2 ===================================================================
3 --- ocamlsdl-0.9.1.orig/src/Makefile
4 +++ ocamlsdl-0.9.1/src/Makefile
5 @@ -17,7 +17,7 @@ gfx_MODULES = sdlgfx
6
7 TARGETS = sdl.cma $(patsubst %,sdl%.cma,$(PARTS))
8 TARGETS += libsdlstub.$(A) $(patsubst %,libsdl%stub.$(A),$(PARTS))
9 -ifdef OCAMLOPT
10 +ifneq ($(OCAMLOPT),no)
11 TARGETS += sdl.cmxa $(patsubst %,sdl%.cmxa,$(PARTS))
12 endif
13
14 @@ -87,7 +87,7 @@ ifdef OCAMLFIND
15 install-findlib :
16 $(OCAMLFIND) install sdl ../META \
17 *.cma lib*.$(A) *.cmi *.mli \
18 - $(if $(OCAMLOPT),*.cmxa sdl*.$(A) *.cmx) \
19 + $(if $(filter-out $(OCAMLOPT),no),*.cmxa sdl*.$(A) *.cmx) \
20 $(if $(OCAMLMKLIB),dll*.so)
21 ifeq ($(PLATFORM),Apple)
22 $(RANLIB) $$($(OCAMLFIND) printconf destdir)/sdl/*.$(A)

  ViewVC Help
Powered by ViewVC 1.1.20