1 #### Nonstop configurations
4 inherit_from => [ 'BASE_unix' ],
7 cflags => add_before(picker(debug => '-g -O0',
10 '-Wnowarn=203,220,272,734,770,1506',
11 '-Wbuild_neutral_library',
13 defines => add('OPENSSL_VPROC=$(OPENSSL_VPROC)',
15 '_XOPEN_SOURCE_EXTENDED=1',
18 perl => '/usr/bin/perl',
19 shared_target => 'nonstop-shared',
20 shared_extension => ".so",
21 ex_libs => add('-lrld'),
23 dso_scheme => 'DLFCN',
27 ######################################################################
28 # Additional variant settings, to be combined with nonstop-common
29 # Note that these do not inherit anything. However, the diverse values
30 # are merged with other entries in an 'inherit_from'.
33 # - System architecture (MIPS, Itanium, or x86)
34 # - Execution environment (oss [default] or guardian)
36 # Unfortunately, they can't be separated into independent templates, because
37 # a number of the above are encoded as different linkers, and by consequence,
38 # different c99 linker flags (-Wld, -Weld, and -Wxld)
40 # In addition, the are modifiers for:
41 # - Size of long + pointer (ilp32 [default] and lp64)
42 # - Float type (neutral and tandem)
44 # Unfortunately, because the float types affect the linker settings, those
45 # are divided per system architecture
47 # MIPS + guardian (unused but present for convenience):
48 'nonstop-archenv-mips-guardian' => {
50 defines => ['NO_GETPID'],
51 cflags => '-Wtarget=tns/r -Wsystype=guardian',
52 lflags => '-Wld="-set systype guardian"',
53 shared_ldflag => '-Wshared -Wld="-soname $(@:lib%.so=%)"',
54 shared_defflag => '-Wld_obey=',
55 shared_argfileflag => '-Wld_obey=',
59 'nonstop-archenv-itanium-guardian' => {
61 defines => ['NO_GETPID'],
62 cflags => '-Wtarget=tns/e -Wsystype=guardian',
63 lflags => '-Weld="-set systype guardian"',
64 shared_ldflag => '-Wshared -Weld="-soname $(@:lib%.so=%)"',
65 shared_defflag => '-Weld_obey=',
66 shared_argfileflag => '-Weld_obey=',
70 'nonstop-archenv-x86_64-guardian' => {
72 defines => ['NO_GETPID'],
73 cflags => '-Wtarget=tns/x -Wsystype=guardian',
74 lflags => '-Wxld="-set systype guardian"',
75 shared_ldflag => '-Wshared -Wxld="-soname $(@:lib%.so=%)"',
76 shared_defflag => '-Wxld_obey=',
77 shared_argfileflag => '-Wxld_obey=',
80 # MIPS + oss (unused but present for convenience):
81 'nonstop-archenv-mips-oss' => {
83 cflags => '-Wtarget=tns/r -Wsystype=oss',
84 lflags => '-Wld="-set systype oss"',
85 shared_ldflag => '-Wshared',
86 shared_defflag => '-Wld_obey=',
87 shared_argfileflag => '-Wld_obey=',
90 'nonstop-archenv-itanium-oss' => {
92 cflags => '-Wtarget=tns/e -Wsystype=oss',
93 lflags => '-Weld="-set systype oss"',
94 shared_ldflag => '-Wshared',
95 shared_defflag => '-Weld_obey=',
96 shared_argfileflag => '-Weld_obey=',
99 'nonstop-archenv-x86_64-oss' => {
101 cflags => '-Wtarget=tns/x -Wsystype=oss',
102 lflags => '-Wxld="-set systype oss"',
103 shared_ldflag => '-Wshared',
104 shared_defflag => '-Wxld_obey=',
105 shared_argfileflag => '-Wxld_obey=',
112 bn_ops => 'THIRTY_TWO_BIT',
114 'nonstop-lp64-itanium' => {
117 bn_ops => 'SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR',
119 'nonstop-lp64-x86_64' => {
122 lflags => '-Wxld="-set data_model lp64"',
123 bn_ops => 'SIXTY_FOUR_BIT',
127 'nonstop-nfloat-mips' => {
129 lflags => '-Wld="-set floattype neutral_float"',
131 'nonstop-tfloat-mips' => {
133 lflags => '-Wld="-set floattype tandem_float"',
135 'nonstop-efloat-itanium' => {
137 cflags => '-WIEEE_float',
138 lflags => '-Weld="-set floattype ieee_float"',
140 'nonstop-nfloat-itanium' => {
142 lflags => '-Weld="-set floattype neutral_float"',
144 'nonstop-tfloat-itanium' => {
146 cflags => '-WTandem_float',
147 lflags => '-Weld="-set floattype tandem_float"',
149 'nonstop-efloat-x86_64' => {
151 cflags => '-WIEEE_float',
152 lflags => '-Wxld="-set floattype ieee_float"',
154 'nonstop-nfloat-x86_64' => {
156 lflags => '-Wxld="-set floattype neutral_float"',
158 'nonstop-tfloat-x86_64' => {
160 cflags => '-WTandem_float',
161 lflags => '-Wxld="-set floattype tandem_float"',
164 ######################################################################
166 'nonstop-model-put' => {
168 defines => ['_PUT_MODEL_',
169 '_REENTRANT', '_THREAD_SUPPORT_FUNCTIONS'],
172 'nonstop-model-spt' => {
174 defines => ['_SPT_MODEL_',
175 '_REENTRANT', '_ENABLE_FLOSS_THREADS'],
179 # Additional floss model that can be combined with any of the other models.
180 # If used without any of the other models, the entry that does so must
182 'nonstop-model-floss' => {
184 defines => ['OPENSSL_TANDEM_FLOSS'],
185 includes => ['/usr/local/include'],
186 ex_libs => '-lfloss',
189 ######################################################################
190 # Now for the entries themselves, let's combine things!
192 inherit_from => [ 'nonstop-common',
193 'nonstop-archenv-x86_64-oss',
195 'nonstop-efloat-x86_64' ],
196 disable => ['threads'],
198 'nonstop-nsx_put' => {
199 inherit_from => [ 'nonstop-common',
200 'nonstop-archenv-x86_64-oss',
202 'nonstop-efloat-x86_64',
203 'nonstop-model-put' ],
207 'nonstop-nsx_64' => {
208 inherit_from => [ 'nonstop-common',
209 'nonstop-archenv-x86_64-oss',
210 'nonstop-lp64-x86_64',
211 'nonstop-efloat-x86_64' ],
214 disable => ['threads'],
216 'nonstop-nsx_64_put' => {
217 inherit_from => [ 'nonstop-common',
218 'nonstop-archenv-x86_64-oss',
219 'nonstop-lp64-x86_64',
220 'nonstop-efloat-x86_64',
221 'nonstop-model-put' ],
222 multilib => '64-put',
223 multibin => '64-put',
225 'nonstop-nsx_spt' => {
226 inherit_from => [ 'nonstop-common',
227 'nonstop-archenv-x86_64-oss',
229 'nonstop-efloat-x86_64',
230 'nonstop-model-spt' ],
234 'nonstop-nsx_spt_floss' => {
235 inherit_from => [ 'nonstop-common',
236 'nonstop-archenv-x86_64-oss',
238 'nonstop-efloat-x86_64',
239 'nonstop-model-floss',
240 'nonstop-model-spt'],
245 inherit_from => [ 'nonstop-common',
246 'nonstop-archenv-x86_64-guardian',
247 'nonstop-ilp32', 'nonstop-nfloat-x86_64' ],
248 disable => ['threads'],
250 'nonstop-nsx_g_tandem' => {
251 inherit_from => [ 'nonstop-common',
252 'nonstop-archenv-x86_64-guardian',
253 'nonstop-ilp32', 'nonstop-tfloat-x86_64' ],
254 disable => ['threads'],
257 inherit_from => [ 'nonstop-nsx' ],
260 inherit_from => [ 'nonstop-common',
261 'nonstop-archenv-itanium-oss',
263 'nonstop-efloat-itanium' ],
264 disable => ['threads'],
266 'nonstop-nse_put' => {
267 inherit_from => [ 'nonstop-common',
268 'nonstop-archenv-itanium-oss',
270 'nonstop-efloat-itanium',
271 'nonstop-model-put' ],
275 'nonstop-nse_64' => {
276 inherit_from => [ 'nonstop-common',
277 'nonstop-archenv-itanium-oss',
278 'nonstop-lp64-itanium',
279 'nonstop-efloat-itanium' ],
282 disable => ['threads'],
284 'nonstop-nse_64_put' => {
285 inherit_from => [ 'nonstop-common',
286 'nonstop-archenv-itanium-oss',
287 'nonstop-lp64-itanium',
288 'nonstop-efloat-itanium',
289 'nonstop-model-put' ],
290 multilib => '64-put',
291 multibin => '64-put',
293 'nonstop-nse_spt' => {
294 inherit_from => [ 'nonstop-common',
295 'nonstop-archenv-itanium-oss',
297 'nonstop-efloat-itanium',
298 'nonstop-model-spt' ],
302 'nonstop-nse_spt_floss' => {
303 inherit_from => [ 'nonstop-common',
304 'nonstop-archenv-itanium-oss',
306 'nonstop-efloat-itanium',
307 'nonstop-model-floss', 'nonstop-model-spt' ],
312 inherit_from => [ 'nonstop-common',
313 'nonstop-archenv-itanium-guardian',
314 'nonstop-ilp32', 'nonstop-nfloat-itanium' ],
315 disable => ['threads'],
318 'nonstop-nse_g_tandem' => {
319 inherit_from => [ 'nonstop-common',
320 'nonstop-archenv-itanium-guardian',
321 'nonstop-ilp32', 'nonstop-tfloat-itanium' ],
322 disable => ['threads'],