1 | #### Nonstop configurations
|
---|
2 | # Common for all
|
---|
3 | 'nonstop-common' => {
|
---|
4 | inherit_from => [ 'BASE_unix' ],
|
---|
5 | template => 1,
|
---|
6 | cc => 'c99',
|
---|
7 | cflags => add_before(picker(debug => '-g -O0',
|
---|
8 | release => '-g -O2'),
|
---|
9 | '-Wextensions',
|
---|
10 | '-Wnowarn=203,220,272,734,770,1506',
|
---|
11 | '-Wbuild_neutral_library',
|
---|
12 | '-Wverbose'),
|
---|
13 | defines => add('OPENSSL_VPROC=$(OPENSSL_VPROC)',
|
---|
14 | '_XOPEN_SOURCE',
|
---|
15 | '_XOPEN_SOURCE_EXTENDED=1',
|
---|
16 | '_TANDEM_SOURCE',
|
---|
17 | '__NSK_OPTIONAL_TYPES__',
|
---|
18 | 'B_ENDIAN'),
|
---|
19 | perl => '/usr/bin/perl',
|
---|
20 | shared_target => 'nonstop-shared',
|
---|
21 | shared_extension => ".so",
|
---|
22 | ex_libs => add('-lrld'),
|
---|
23 | enable => ['egd'],
|
---|
24 | # Not currently inherited
|
---|
25 | disable => ['atexit'],
|
---|
26 | dso_scheme => 'DLFCN',
|
---|
27 | sys_id => 'TANDEM',
|
---|
28 | },
|
---|
29 |
|
---|
30 | ######################################################################
|
---|
31 | # Additional variant settings, to be combined with nonstop-common
|
---|
32 | # Note that these do not inherit anything. However, the diverse values
|
---|
33 | # are merged with other entries in an 'inherit_from'.
|
---|
34 | #
|
---|
35 | # These combine:
|
---|
36 | # - System architecture (MIPS, Itanium, or x86)
|
---|
37 | # - Execution environment (oss [default] or guardian)
|
---|
38 | #
|
---|
39 | # Unfortunately, they can't be separated into independent templates, because
|
---|
40 | # a number of the above are encoded as different linkers, and by consequence,
|
---|
41 | # different c99 linker flags (-Wld, -Weld, and -Wxld)
|
---|
42 | #
|
---|
43 | # In addition, the are modifiers for:
|
---|
44 | # - Size of long + pointer (ilp32 [default] and lp64)
|
---|
45 | # - Float type (neutral and tandem)
|
---|
46 | #
|
---|
47 | # Unfortunately, because the float types affect the linker settings, those
|
---|
48 | # are divided per system architecture
|
---|
49 | #
|
---|
50 | # MIPS + guardian (unused but present for convenience):
|
---|
51 | 'nonstop-archenv-mips-guardian' => {
|
---|
52 | template => 1,
|
---|
53 | defines => ['NO_GETPID'],
|
---|
54 | cflags => '-Wtarget=tns/r -Wsystype=guardian',
|
---|
55 | lflags => '-Wld="-set systype guardian"',
|
---|
56 | shared_ldflag => '-Wshared -Wld="-soname $(@:lib%.so=%)"',
|
---|
57 | shared_defflag => '-Wld_obey=',
|
---|
58 | shared_argfileflag => '-Wld_obey=',
|
---|
59 | },
|
---|
60 |
|
---|
61 | # Itanium + guardian:
|
---|
62 | 'nonstop-archenv-itanium-guardian' => {
|
---|
63 | template => 1,
|
---|
64 | defines => ['NO_GETPID'],
|
---|
65 | cflags => '-Wtarget=tns/e -Wsystype=guardian',
|
---|
66 | lflags => '-Weld="-set systype guardian"',
|
---|
67 | shared_ldflag => '-Wshared -Weld="-soname $(@:lib%.so=%)"',
|
---|
68 | shared_defflag => '-Weld_obey=',
|
---|
69 | shared_argfileflag => '-Weld_obey=',
|
---|
70 | },
|
---|
71 |
|
---|
72 | # x86 + guardian:
|
---|
73 | 'nonstop-archenv-x86_64-guardian' => {
|
---|
74 | template => 1,
|
---|
75 | defines => ['NO_GETPID'],
|
---|
76 | cflags => '-Wtarget=tns/x -Wsystype=guardian',
|
---|
77 | lflags => '-Wxld="-set systype guardian"',
|
---|
78 | shared_ldflag => '-Wshared -Wxld="-soname $(@:lib%.so=%)"',
|
---|
79 | shared_defflag => '-Wxld_obey=',
|
---|
80 | shared_argfileflag => '-Wxld_obey=',
|
---|
81 | },
|
---|
82 |
|
---|
83 | # MIPS + oss (unused but present for convenience):
|
---|
84 | 'nonstop-archenv-mips-oss' => {
|
---|
85 | template => 1,
|
---|
86 | cflags => '-Wtarget=tns/r -Wsystype=oss',
|
---|
87 | lflags => '-Wld="-set systype oss"',
|
---|
88 | shared_ldflag => '-Wshared',
|
---|
89 | shared_defflag => '-Wld_obey=',
|
---|
90 | shared_argfileflag => '-Wld_obey=',
|
---|
91 | },
|
---|
92 | # Itanium + oss:
|
---|
93 | 'nonstop-archenv-itanium-oss' => {
|
---|
94 | template => 1,
|
---|
95 | cflags => '-Wtarget=tns/e -Wsystype=oss',
|
---|
96 | lflags => '-Weld="-set systype oss"',
|
---|
97 | shared_ldflag => '-Wshared',
|
---|
98 | shared_defflag => '-Weld_obey=',
|
---|
99 | shared_argfileflag => '-Weld_obey=',
|
---|
100 | },
|
---|
101 | # x86_64 + oss:
|
---|
102 | 'nonstop-archenv-x86_64-oss' => {
|
---|
103 | template => 1,
|
---|
104 | cflags => '-Wtarget=tns/x -Wsystype=oss',
|
---|
105 | lflags => '-Wxld="-set systype oss"',
|
---|
106 | shared_ldflag => '-Wshared',
|
---|
107 | shared_defflag => '-Wxld_obey=',
|
---|
108 | shared_argfileflag => '-Wxld_obey=',
|
---|
109 | },
|
---|
110 |
|
---|
111 | # Size variants
|
---|
112 | 'nonstop-ilp32' => {
|
---|
113 | template => 1,
|
---|
114 | cflags => '-Wilp32',
|
---|
115 | bn_ops => 'THIRTY_TWO_BIT',
|
---|
116 | },
|
---|
117 | 'nonstop-lp64-itanium' => {
|
---|
118 | template => 1,
|
---|
119 | cflags => '-Wlp64',
|
---|
120 | bn_ops => 'SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR',
|
---|
121 | },
|
---|
122 | 'nonstop-lp64-x86_64' => {
|
---|
123 | template => 1,
|
---|
124 | cflags => '-Wlp64',
|
---|
125 | lflags => '-Wxld="-set data_model lp64"',
|
---|
126 | bn_ops => 'SIXTY_FOUR_BIT',
|
---|
127 | },
|
---|
128 |
|
---|
129 | # Float variants
|
---|
130 | 'nonstop-nfloat-mips' => {
|
---|
131 | template => 1,
|
---|
132 | lflags => '-Wld="-set floattype neutral_float"',
|
---|
133 | },
|
---|
134 | 'nonstop-tfloat-mips' => {
|
---|
135 | template => 1,
|
---|
136 | lflags => '-Wld="-set floattype tandem_float"',
|
---|
137 | },
|
---|
138 | 'nonstop-efloat-itanium' => {
|
---|
139 | template => 1,
|
---|
140 | cflags => '-WIEEE_float',
|
---|
141 | lflags => '-Weld="-set floattype ieee_float"',
|
---|
142 | },
|
---|
143 | 'nonstop-nfloat-itanium' => {
|
---|
144 | template => 1,
|
---|
145 | lflags => '-Weld="-set floattype neutral_float"',
|
---|
146 | },
|
---|
147 | 'nonstop-tfloat-itanium' => {
|
---|
148 | template => 1,
|
---|
149 | cflags => '-WTandem_float',
|
---|
150 | lflags => '-Weld="-set floattype tandem_float"',
|
---|
151 | },
|
---|
152 | 'nonstop-efloat-x86_64' => {
|
---|
153 | template => 1,
|
---|
154 | cflags => '-WIEEE_float',
|
---|
155 | lflags => '-Wxld="-set floattype ieee_float"',
|
---|
156 | },
|
---|
157 | 'nonstop-nfloat-x86_64' => {
|
---|
158 | template => 1,
|
---|
159 | lflags => '-Wxld="-set floattype neutral_float"',
|
---|
160 | },
|
---|
161 | 'nonstop-tfloat-x86_64' => {
|
---|
162 | template => 1,
|
---|
163 | cflags => '-WTandem_float',
|
---|
164 | lflags => '-Wxld="-set floattype tandem_float"',
|
---|
165 | },
|
---|
166 |
|
---|
167 | ######################################################################
|
---|
168 | # Build models
|
---|
169 | 'nonstop-model-put' => {
|
---|
170 | template => 1,
|
---|
171 | defines => ['_PUT_MODEL_',
|
---|
172 | '_REENTRANT', '_THREAD_SUPPORT_FUNCTIONS'],
|
---|
173 | ex_libs => '-lput',
|
---|
174 | },
|
---|
175 |
|
---|
176 | ######################################################################
|
---|
177 | # Now for the entries themselves, let's combine things!
|
---|
178 | 'nonstop-nsx' => {
|
---|
179 | inherit_from => [ 'nonstop-common',
|
---|
180 | 'nonstop-archenv-x86_64-oss',
|
---|
181 | 'nonstop-ilp32',
|
---|
182 | 'nonstop-efloat-x86_64' ],
|
---|
183 | disable => ['threads','atexit'],
|
---|
184 | },
|
---|
185 | 'nonstop-nsx_put' => {
|
---|
186 | inherit_from => [ 'nonstop-common',
|
---|
187 | 'nonstop-archenv-x86_64-oss',
|
---|
188 | 'nonstop-ilp32',
|
---|
189 | 'nonstop-efloat-x86_64',
|
---|
190 | 'nonstop-model-put' ],
|
---|
191 | multilib => '-put',
|
---|
192 | multibin => '-put',
|
---|
193 | disable => ['atexit'],
|
---|
194 | },
|
---|
195 | 'nonstop-nsx_64' => {
|
---|
196 | inherit_from => [ 'nonstop-common',
|
---|
197 | 'nonstop-archenv-x86_64-oss',
|
---|
198 | 'nonstop-lp64-x86_64',
|
---|
199 | 'nonstop-efloat-x86_64' ],
|
---|
200 | multilib => '64',
|
---|
201 | multibin => '64',
|
---|
202 | disable => ['threads','atexit'],
|
---|
203 | },
|
---|
204 | 'nonstop-nsx_64_put' => {
|
---|
205 | inherit_from => [ 'nonstop-common',
|
---|
206 | 'nonstop-archenv-x86_64-oss',
|
---|
207 | 'nonstop-lp64-x86_64',
|
---|
208 | 'nonstop-efloat-x86_64',
|
---|
209 | 'nonstop-model-put' ],
|
---|
210 | multilib => '64-put',
|
---|
211 | multibin => '64-put',
|
---|
212 | disable => ['atexit'],
|
---|
213 | },
|
---|
214 | 'nonstop-nsx_g' => {
|
---|
215 | inherit_from => [ 'nonstop-common',
|
---|
216 | 'nonstop-archenv-x86_64-guardian',
|
---|
217 | 'nonstop-ilp32', 'nonstop-nfloat-x86_64' ],
|
---|
218 | disable => ['threads','atexit'],
|
---|
219 | },
|
---|
220 | 'nonstop-nsx_g_tandem' => {
|
---|
221 | inherit_from => [ 'nonstop-common',
|
---|
222 | 'nonstop-archenv-x86_64-guardian',
|
---|
223 | 'nonstop-ilp32', 'nonstop-tfloat-x86_64' ],
|
---|
224 | disable => ['threads','atexit'],
|
---|
225 | },
|
---|
226 | 'nonstop-nsv' => {
|
---|
227 | inherit_from => [ 'nonstop-nsx' ],
|
---|
228 | },
|
---|
229 | 'nonstop-nse' => {
|
---|
230 | inherit_from => [ 'nonstop-common',
|
---|
231 | 'nonstop-archenv-itanium-oss',
|
---|
232 | 'nonstop-ilp32',
|
---|
233 | 'nonstop-efloat-itanium' ],
|
---|
234 | disable => ['threads','atexit'],
|
---|
235 | },
|
---|
236 | 'nonstop-nse_put' => {
|
---|
237 | inherit_from => [ 'nonstop-common',
|
---|
238 | 'nonstop-archenv-itanium-oss',
|
---|
239 | 'nonstop-ilp32',
|
---|
240 | 'nonstop-efloat-itanium',
|
---|
241 | 'nonstop-model-put' ],
|
---|
242 | multilib => '-put',
|
---|
243 | multibin => '-put',
|
---|
244 | disable => ['atexit'],
|
---|
245 | },
|
---|
246 | 'nonstop-nse_64' => {
|
---|
247 | inherit_from => [ 'nonstop-common',
|
---|
248 | 'nonstop-archenv-itanium-oss',
|
---|
249 | 'nonstop-lp64-itanium',
|
---|
250 | 'nonstop-efloat-itanium' ],
|
---|
251 | multilib => '64',
|
---|
252 | multibin => '64',
|
---|
253 | disable => ['threads','atexit'],
|
---|
254 | },
|
---|
255 | 'nonstop-nse_64_put' => {
|
---|
256 | inherit_from => [ 'nonstop-common',
|
---|
257 | 'nonstop-archenv-itanium-oss',
|
---|
258 | 'nonstop-lp64-itanium',
|
---|
259 | 'nonstop-efloat-itanium',
|
---|
260 | 'nonstop-model-put' ],
|
---|
261 | multilib => '64-put',
|
---|
262 | multibin => '64-put',
|
---|
263 | disable => ['atexit'],
|
---|
264 | },
|
---|
265 | 'nonstop-nse_g' => {
|
---|
266 | inherit_from => [ 'nonstop-common',
|
---|
267 | 'nonstop-archenv-itanium-guardian',
|
---|
268 | 'nonstop-ilp32', 'nonstop-nfloat-itanium' ],
|
---|
269 | disable => ['threads','atexit'],
|
---|
270 | },
|
---|
271 |
|
---|
272 | 'nonstop-nse_g_tandem' => {
|
---|
273 | inherit_from => [ 'nonstop-common',
|
---|
274 | 'nonstop-archenv-itanium-guardian',
|
---|
275 | 'nonstop-ilp32', 'nonstop-tfloat-itanium' ],
|
---|
276 | disable => ['threads','atexit'],
|
---|
277 | },
|
---|