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' ],
206 'nonstop-nsx_64' => {
207 inherit_from => [ 'nonstop-common',
208 'nonstop-archenv-x86_64-oss',
209 'nonstop-lp64-x86_64',
210 'nonstop-efloat-x86_64' ],
212 disable => ['threads'],
214 'nonstop-nsx_64_put' => {
215 inherit_from => [ 'nonstop-common',
216 'nonstop-archenv-x86_64-oss',
217 'nonstop-lp64-x86_64',
218 'nonstop-efloat-x86_64',
219 'nonstop-model-put' ],
220 multilib => '64-put',
222 'nonstop-nsx_spt' => {
223 inherit_from => [ 'nonstop-common',
224 'nonstop-archenv-x86_64-oss',
226 'nonstop-efloat-x86_64',
227 'nonstop-model-spt' ],
230 'nonstop-nsx_spt_floss' => {
231 inherit_from => [ 'nonstop-common',
232 'nonstop-archenv-x86_64-oss',
234 'nonstop-efloat-x86_64',
235 'nonstop-model-floss',
236 'nonstop-model-spt'],
240 inherit_from => [ 'nonstop-common',
241 'nonstop-archenv-x86_64-guardian',
242 'nonstop-ilp32', 'nonstop-nfloat-x86_64' ],
243 disable => ['threads'],
245 'nonstop-nsx_g_tandem' => {
246 inherit_from => [ 'nonstop-common',
247 'nonstop-archenv-x86_64-guardian',
248 'nonstop-ilp32', 'nonstop-tfloat-x86_64' ],
249 disable => ['threads'],
252 inherit_from => [ 'nonstop-nsx' ],
255 inherit_from => [ 'nonstop-common',
256 'nonstop-archenv-itanium-oss',
258 'nonstop-efloat-itanium' ],
259 disable => ['threads'],
261 'nonstop-nse_put' => {
262 inherit_from => [ 'nonstop-common',
263 'nonstop-archenv-itanium-oss',
265 'nonstop-efloat-itanium',
266 'nonstop-model-put' ],
269 'nonstop-nse_64' => {
270 inherit_from => [ 'nonstop-common',
271 'nonstop-archenv-itanium-oss',
272 'nonstop-lp64-itanium',
273 'nonstop-efloat-itanium' ],
275 disable => ['threads'],
277 'nonstop-nse_64_put' => {
278 inherit_from => [ 'nonstop-common',
279 'nonstop-archenv-itanium-oss',
280 'nonstop-lp64-itanium',
281 'nonstop-efloat-itanium',
282 'nonstop-model-put' ],
283 multilib => '64-put',
285 'nonstop-nse_spt' => {
286 inherit_from => [ 'nonstop-common',
287 'nonstop-archenv-itanium-oss',
289 'nonstop-efloat-itanium',
290 'nonstop-model-spt' ],
293 'nonstop-nse_spt_floss' => {
294 inherit_from => [ 'nonstop-common',
295 'nonstop-archenv-itanium-oss',
297 'nonstop-efloat-itanium',
298 'nonstop-model-floss', 'nonstop-model-spt' ],
302 inherit_from => [ 'nonstop-common',
303 'nonstop-archenv-itanium-guardian',
304 'nonstop-ilp32', 'nonstop-nfloat-itanium' ],
305 disable => ['threads'],
308 'nonstop-nse_g_tandem' => {
309 inherit_from => [ 'nonstop-common',
310 'nonstop-archenv-itanium-guardian',
311 'nonstop-ilp32', 'nonstop-tfloat-itanium' ],
312 disable => ['threads'],