summaryrefslogtreecommitdiff
path: root/lang/ocaml/options.mk
blob: c3d862d6c9ef804c5f3fa13bc6209d6a1bbf9b0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# $NetBSD: options.mk,v 1.1 2017/09/08 09:12:44 jaapb Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.ocaml
PKG_SUPPORTED_OPTIONS=	pic flambda spacetime
PKG_SUGGESTED_OPTIONS=	pic

.include "../../mk/bsd.prefs.mk"
.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mpic)
CONFIGURE_ARGS+=	-fPIC
.endif

.if !empty(PKG_OPTIONS:Mflambda)
CONFIGURE_ARGS+=	-flambda
.endif

.if !empty(PKG_OPTIONS:Mspacetime)
CONFIGURE_ARGS+=	-spacetime
.endif