summaryrefslogtreecommitdiff
path: root/devel/omake/patches/patch-lib_build_OCaml.om
blob: 64189c6d324f354a90e6935cbea06f6af982fdac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-lib_build_OCaml.om,v 1.2 2018/02/12 11:03:35 dholland Exp $

Fix build failure. Apparently $(c_comp) is an array and it needs
to be a string.

--- lib/build/OCaml.om~	2017-10-29 11:36:41.000000000 +0000
+++ lib/build/OCaml.om
@@ -181,7 +181,7 @@ private.get_bytecomp_c_comp() =
     # Figure out the params for the C compiler
     #
     private.c_comp = $(get_c_comp)
-    if $(equal X$(c_comp)X, XX)
+    if $(equal X$(string $(c_comp))X, XX)
         private.bytecomp_c_comp = $(get_bytecomp_c_comp)
         OCAML_CC = $(nth-hd 1, $(bytecomp_c_comp))
         OCAML_CFLAGS = $(nth-tl 1, $(bytecomp_c_comp))