summaryrefslogtreecommitdiff
path: root/lang/ocaml/patches/patch-byterun_Makefile
blob: bcb2887e1ece0677eaf8544c7f5d4ce76128f089 (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
$NetBSD: patch-byterun_Makefile,v 1.4 2015/12/29 23:34:52 dholland Exp $

Use BSD_INSTALL_* instead of mkdir and cp

--- byterun/Makefile.orig	2015-05-10 05:45:57.000000000 +0000
+++ byterun/Makefile
@@ -13,7 +13,7 @@
 
 include Makefile.common
 
-CFLAGS=-DCAML_NAME_SPACE $(BYTECCCOMPOPTS) $(IFLEXDIR)
+CFLAGS+=-DCAML_NAME_SPACE $(BYTECCCOMPOPTS) $(IFLEXDIR)
 DFLAGS=-DCAML_NAME_SPACE -g -DDEBUG $(BYTECCCOMPOPTS) $(IFLEXDIR)
 
 OBJS=$(COMMONOBJS) $(UNIX_OR_WIN32).o main.o
@@ -57,7 +57,7 @@ install-noshared:
 .PHONY: install-noshared
 
 install-shared:
-	cp libcamlrun_shared.so $(INSTALL_LIBDIR)/libcamlrun_shared.so
+	$(BSD_INSTALL_PROGRAM) libcamlrun_shared.so $(INSTALL_LIBDIR)/libcamlrun_shared.so
 	cp libcamlrun_pic.a $(INSTALL_LIBDIR)/libcamlrun_pic.a
 	cd $(INSTALL_LIBDIR); $(RANLIB) libcamlrun_pic.a
 .PHONY: install-shared