summaryrefslogtreecommitdiff
path: root/devel/binutils/options.mk
blob: 516e5e04fa112a83132770d17ba5c1c2bed74bdd (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: options.mk,v 1.1 2021/01/29 13:10:34 jperkin Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.binutils
PKG_SUPPORTED_OPTIONS=	disable-ld

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

.if ${OPSYS} == "Darwin"
PKG_SUGGESTED_OPTIONS=	disable-ld
.endif

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

PLIST_VARS+=	gld

#
# Disable ld completely.  With the introduction of "libdep.so" this may now be
# required on some systems to avoid a dependency on libgcc.
#
.if !empty(PKG_OPTIONS:Mdisable-ld)
CONFIGURE_ARGS+=	--disable-ld
.else
PLIST.gld=		yes
.endif