blob: 1681eaa777f4101b2699420f640026eedc4046eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
$NetBSD: patch-bn,v 1.3 2005/03/24 11:32:50 adam Exp $
--- otherlibs/str/Makefile.orig 2002-12-09 14:05:18.000000000 +0000
+++ 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
@@ -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
|