blob: 7a4defd2bc22a99a68c67ef8b354a8671ba309f5 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
# $NetBSD: options.mk,v 1.1 2012/07/08 19:30:38 marino Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.gcc-aux
PKG_SUPPORTED_OPTIONS= ada cxx fortran objc testsuite nls static
PKG_SUGGESTED_OPTIONS= ada cxx fortran objc
.if ${OPSYS} == "NetBSD"
PKG_SUGGESTED_OPTIONS+= static
.endif
.include "../../mk/bsd.options.mk"
#########################
## ADD LANGUAGE: Ada ##
#########################
.if !empty(PKG_OPTIONS:Mada)
LANGS+= ada
APPLY_DIFFS+= ada
.endif
#########################
## ADD LANGUAGE: C++ ##
#########################
.if !empty(PKG_OPTIONS:Mcxx)
LANGS+= c++
APPLY_DIFFS+= cxx
.endif
#############################
## ADD LANGUAGE: Fortran ##
#############################
.if empty(PKG_OPTIONS:Mfortran)
EXTRA_CONFARGS+= --disable-libquadmath
.else
LANGS+= fortran
APPLY_DIFFS+= fortran
.if ${OPSYS} == "NetBSD"
EXTRA_CONFARGS+= --disable-libquadmath
.else
EXTRA_CONFARGS+= --enable-libquadmath
.endif
.endif
#################################
## ADD LANGUAGE: Objective-C ##
#################################
.if !empty(PKG_OPTIONS:Mobjc)
LANGS+= objc
.endif
#########################
## TESTSUITE SUPPORT ##
#########################
.if !empty(PKG_OPTIONS:Mtestsuite)
BUILD_DEPENDS+= dejagnu>=1.4:../../devel/dejagnu
APPLY_DIFFS+= ada-testsuite
APPLY_DIFFS+= cxx-testsuite
APPLY_DIFFS+= gcc-testsuite
APPLY_DIFFS+= fortran-testsuite
.endif
#################################
## NATIONAL LANGUAGE SUPPORT ##
#################################
.if !empty(PKG_OPTIONS:Mnls)
USE_TOOLS+= msgfmt
EXTRA_CONFARGS+= --enable-nls
.include "../../devel/gettext-lib/buildlink3.mk"
.else
EXTRA_CONFARGS+= --disable-nls
.endif
###############################
## STATICALLY BUILT OPTION ##
###############################
# NetBSD must be built statically to support dl_iterate_phdr
# error handling. The base compiler doesn't support despite it although
# NetBSD's realtime linker supports dl_iterate_phdr
# Setting the option by default on NetBSD is cosmetic; regardless of
# setting, NetBSD will always be built statically.
#
# The "static" option is handled in the post-extract phase.
|