$NetBSD: patch-bn,v 1.4 2007/09/14 15:34:12 adam Exp $ --- otherlibs/str/Makefile.orig 2007-01-29 13:11:16.000000000 +0100 +++ otherlibs/str/Makefile @@ -19,7 +19,7 @@ include ../../config/Makefile # Compilation options CC=$(BYTECC) -CFLAGS=-O -I../../byterun $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS) +CFLAGS+=-I../../byterun $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS) CAMLC=../../ocamlcomp.sh CAMLOPT=../../ocamlcompopt.sh COMPFLAGS=-warn-error A -g @@ -48,13 +48,13 @@ clean: partialclean rm -f *.a *.so *.o install: - if test -f dllstr.so; then cp dllstr.so $(STUBLIBDIR)/dllstr.so; fi - cp libstr.a $(LIBDIR)/libstr.a + if test -f dllstr.so; then ${BSD_INSTALL_DATA} dllstr.so $(STUBLIBDIR)/dllstr.so; fi + ${BSD_INSTALL_DATA} libstr.a $(LIBDIR)/libstr.a cd $(LIBDIR); $(RANLIB) libstr.a - cp str.cma str.cmi str.mli $(LIBDIR) + ${BSD_INSTALL_DATA} str.cma str.cmi str.mli $(LIBDIR) installopt: - cp str.cmx str.cmxa str.a $(LIBDIR) + ${BSD_INSTALL_DATA} str.cmx str.cmxa str.a $(LIBDIR) cd $(LIBDIR); $(RANLIB) str.a .SUFFIXES: .ml .mli .cmo .cmi .cmx