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',
17 '__NSK_OPTIONAL_TYPES__',
19 perl => '/usr/bin/perl',
20 shared_target => 'nonstop-shared',
21 shared_extension => ".so",
22 ex_libs => add('-lrld'),
24 dso_scheme => 'DLFCN',
28 ######################################################################
29 # Additional variant settings, to be combined with nonstop-common
30 # Note that these do not inherit anything. However, the diverse values
31 # are merged with other entries in an 'inherit_from'.
34 # - System architecture (MIPS, Itanium, or x86)
35 # - Execution environment (oss [default] or guardian)
37 # Unfortunately, they can't be separated into independent templates, because
38 # a number of the above are encoded as different linkers, and by consequence,
39 # different c99 linker flags (-Wld, -Weld, and -Wxld)
41 # In addition, the are modifiers for:
42 # - Size of long + pointer (ilp32 [default] and lp64)
43 # - Float type (neutral and tandem)
45 # Unfortunately, because the float types affect the linker settings, those
46 # are divided per system architecture
48 # MIPS + guardian (unused but present for convenience):
49 'nonstop-archenv-mips-guardian' => {
51 defines => ['NO_GETPID'],
52 cflags => '-Wtarget=tns/r -Wsystype=guardian',
53 lflags => '-Wld="-set systype guardian"',
54 shared_ldflag => '-Wshared -Wld="-soname $(@:lib%.so=%)"',
55 shared_defflag => '-Wld_obey=',
56 shared_argfileflag => '-Wld_obey=',
60 'nonstop-archenv-itanium-guardian' => {
62 defines => ['NO_GETPID'],
63 cflags => '-Wtarget=tns/e -Wsystype=guardian',
64 lflags => '-Weld="-set systype guardian"',
65 shared_ldflag => '-Wshared -Weld="-soname $(@:lib%.so=%)"',
66 shared_defflag => '-Weld_obey=',
67 shared_argfileflag => '-Weld_obey=',
71 'nonstop-archenv-x86_64-guardian' => {
73 defines => ['NO_GETPID'],
74 cflags => '-Wtarget=tns/x -Wsystype=guardian',
75 lflags => '-Wxld="-set systype guardian"',
76 shared_ldflag => '-Wshared -Wxld="-soname $(@:lib%.so=%)"',
77 shared_defflag => '-Wxld_obey=',
78 shared_argfileflag => '-Wxld_obey=',
81 # MIPS + oss (unused but present for convenience):
82 'nonstop-archenv-mips-oss' => {
84 cflags => '-Wtarget=tns/r -Wsystype=oss',
85 lflags => '-Wld="-set systype oss"',
86 shared_ldflag => '-Wshared',
87 shared_defflag => '-Wld_obey=',
88 shared_argfileflag => '-Wld_obey=',
91 'nonstop-archenv-itanium-oss' => {
93 cflags => '-Wtarget=tns/e -Wsystype=oss',
94 lflags => '-Weld="-set systype oss"',
95 shared_ldflag => '-Wshared',
96 shared_defflag => '-Weld_obey=',
97 shared_argfileflag => '-Weld_obey=',
100 'nonstop-archenv-x86_64-oss' => {
102 cflags => '-Wtarget=tns/x -Wsystype=oss',
103 lflags => '-Wxld="-set systype oss"',
104 shared_ldflag => '-Wshared',
105 shared_defflag => '-Wxld_obey=',
106 shared_argfileflag => '-Wxld_obey=',
113 bn_ops => 'THIRTY_TWO_BIT',
115 'nonstop-lp64-itanium' => {
118 bn_ops => 'SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR',
120 'nonstop-lp64-x86_64' => {
123 lflags => '-Wxld="-set data_model lp64"',
124 bn_ops => 'SIXTY_FOUR_BIT',
128 'nonstop-nfloat-mips' => {
130 lflags => '-Wld="-set floattype neutral_float"',
132 'nonstop-tfloat-mips' => {
134 lflags => '-Wld="-set floattype tandem_float"',
136 'nonstop-efloat-itanium' => {
138 cflags => '-WIEEE_float',
139 lflags => '-Weld="-set floattype ieee_float"',
141 'nonstop-nfloat-itanium' => {
143 lflags => '-Weld="-set floattype neutral_float"',
145 'nonstop-tfloat-itanium' => {
147 cflags => '-WTandem_float',
148 lflags => '-Weld="-set floattype tandem_float"',
150 'nonstop-efloat-x86_64' => {
152 cflags => '-WIEEE_float',
153 lflags => '-Wxld="-set floattype ieee_float"',
155 'nonstop-nfloat-x86_64' => {
157 lflags => '-Wxld="-set floattype neutral_float"',
159 'nonstop-tfloat-x86_64' => {
161 cflags => '-WTandem_float',
162 lflags => '-Wxld="-set floattype tandem_float"',
165 ######################################################################
167 'nonstop-model-put' => {
169 defines => ['_PUT_MODEL_',
170 '_REENTRANT', '_THREAD_SUPPORT_FUNCTIONS'],
173 'nonstop-model-spt' => {
175 cflags => add('-Wnowarn=140'),
176 defines => ['_SPT_MODEL_',
177 'SPT_THREAD_AWARE_NONBLOCK',
182 # Additional floss model that can be combined with any of the other models.
183 # If used without any of the other models, the entry that does so must
185 'nonstop-model-floss' => {
187 defines => ['OPENSSL_TANDEM_FLOSS', '_ENABLE_FLOSS_THREADS'],
188 includes => ['/usr/local/include'],
189 ex_libs => '-lfloss',
192 ######################################################################
193 # Now for the entries themselves, let's combine things!
195 inherit_from => [ 'nonstop-common',
196 'nonstop-archenv-x86_64-oss',
198 'nonstop-efloat-x86_64' ],
199 disable => ['threads'],
201 'nonstop-nsx_put' => {
202 inherit_from => [ 'nonstop-common',
203 'nonstop-archenv-x86_64-oss',
205 'nonstop-efloat-x86_64',
206 'nonstop-model-put' ],
210 'nonstop-nsx_64' => {
211 inherit_from => [ 'nonstop-common',
212 'nonstop-archenv-x86_64-oss',
213 'nonstop-lp64-x86_64',
214 'nonstop-efloat-x86_64' ],
217 disable => ['threads'],
219 'nonstop-nsx_64_put' => {
220 inherit_from => [ 'nonstop-common',
221 'nonstop-archenv-x86_64-oss',
222 'nonstop-lp64-x86_64',
223 'nonstop-efloat-x86_64',
224 'nonstop-model-put' ],
225 multilib => '64-put',
226 multibin => '64-put',
228 'nonstop-nsx_spt' => {
229 inherit_from => [ 'nonstop-common',
230 'nonstop-archenv-x86_64-oss',
232 'nonstop-efloat-x86_64',
233 'nonstop-model-spt' ],
237 'nonstop-nsx_spt_floss' => {
238 inherit_from => [ 'nonstop-common',
239 'nonstop-archenv-x86_64-oss',
241 'nonstop-efloat-x86_64',
242 'nonstop-model-floss',
243 'nonstop-model-spt'],
248 inherit_from => [ 'nonstop-common',
249 'nonstop-archenv-x86_64-guardian',
250 'nonstop-ilp32', 'nonstop-nfloat-x86_64' ],
251 disable => ['threads'],
253 'nonstop-nsx_g_tandem' => {
254 inherit_from => [ 'nonstop-common',
255 'nonstop-archenv-x86_64-guardian',
256 'nonstop-ilp32', 'nonstop-tfloat-x86_64' ],
257 disable => ['threads'],
260 inherit_from => [ 'nonstop-nsx' ],
263 inherit_from => [ 'nonstop-common',
264 'nonstop-archenv-itanium-oss',
266 'nonstop-efloat-itanium' ],
267 disable => ['threads'],
269 'nonstop-nse_put' => {
270 inherit_from => [ 'nonstop-common',
271 'nonstop-archenv-itanium-oss',
273 'nonstop-efloat-itanium',
274 'nonstop-model-put' ],
278 'nonstop-nse_64' => {
279 inherit_from => [ 'nonstop-common',
280 'nonstop-archenv-itanium-oss',
281 'nonstop-lp64-itanium',
282 'nonstop-efloat-itanium' ],
285 disable => ['threads'],
287 'nonstop-nse_64_put' => {
288 inherit_from => [ 'nonstop-common',
289 'nonstop-archenv-itanium-oss',
290 'nonstop-lp64-itanium',
291 'nonstop-efloat-itanium',
292 'nonstop-model-put' ],
293 multilib => '64-put',
294 multibin => '64-put',
296 'nonstop-nse_spt' => {
297 inherit_from => [ 'nonstop-common',
298 'nonstop-archenv-itanium-oss',
300 'nonstop-efloat-itanium',
301 'nonstop-model-spt' ],
305 'nonstop-nse_spt_floss' => {
306 inherit_from => [ 'nonstop-common',
307 'nonstop-archenv-itanium-oss',
309 'nonstop-efloat-itanium',
310 'nonstop-model-floss', 'nonstop-model-spt' ],
315 inherit_from => [ 'nonstop-common',
316 'nonstop-archenv-itanium-guardian',
317 'nonstop-ilp32', 'nonstop-nfloat-itanium' ],
318 disable => ['threads'],
321 'nonstop-nse_g_tandem' => {
322 inherit_from => [ 'nonstop-common',
323 'nonstop-archenv-itanium-guardian',
324 'nonstop-ilp32', 'nonstop-tfloat-itanium' ],
325 disable => ['threads'],