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 => 'self',
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="-export_all -soname $(@:lib%.so=%)"',
54 shared_argfileflag => '-Wld_obey=',
58 'nonstop-archenv-itanium-guardian' => {
60 defines => ['NO_GETPID', '_TANDEM_ARCH=2'],
61 cflags => '-Wtarget=tns/e -Wsystype=guardian',
62 lflags => '-Weld="-set systype guardian"',
63 shared_ldflag => '-Wshared -Weld="-export_all -soname $(@:lib%.so=%)"',
64 shared_argfileflag => '-Weld_obey=',
68 'nonstop-archenv-x86_64-guardian' => {
70 defines => ['NO_GETPID', '_TANDEM_ARCH=3'],
71 cflags => '-Wtarget=tns/x -Wsystype=guardian',
72 lflags => '-Wxld="-set systype guardian"',
73 shared_ldflag => '-Wshared -Wxld="-export_all -soname $(@:lib%.so=%)"',
74 shared_argfileflag => '-Wxld_obey=',
77 # MIPS + oss (unused but present for convenience):
78 'nonstop-archenv-mips-oss' => {
80 cflags => '-Wtarget=tns/r -Wsystype=oss',
81 lflags => '-Wld="-set systype oss"',
82 shared_ldflag => '-Wshared -Wld="-export_all"',
83 shared_argfileflag => '-Wld_obey=',
86 'nonstop-archenv-itanium-oss' => {
88 defines => ['_TANDEM_ARCH=2'],
89 cflags => '-Wtarget=tns/e -Wsystype=oss',
90 lflags => '-Weld="-set systype oss"',
91 shared_ldflag => '-Wshared -Weld="-export_all"',
92 shared_argfileflag => '-Weld_obey=',
95 'nonstop-archenv-x86_64-oss' => {
97 defines => ['_TANDEM_ARCH=3'],
98 cflags => '-Wtarget=tns/x -Wsystype=oss',
99 lflags => '-Wxld="-set systype oss"',
100 shared_ldflag => '-Wshared -Wxld="-export_all"',
101 shared_argfileflag => '-Wxld_obey=',
108 bn_ops => 'THIRTY_TWO_BIT',
110 'nonstop-lp64-itanium' => {
113 bn_ops => 'SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR',
115 'nonstop-lp64-x86_64' => {
118 lflags => '-Wxld="-set data_model lp64"',
119 bn_ops => 'SIXTY_FOUR_BIT',
123 'nonstop-nfloat-mips' => {
125 lflags => '-Wld="-set floattype neutral_float"',
127 'nonstop-tfloat-mips' => {
129 lflags => '-Wld="-set floattype tandem_float"',
131 'nonstop-nfloat-itanium' => {
133 lflags => '-Weld="-set floattype neutral_float"',
135 'nonstop-tfloat-itanium' => {
137 lflags => '-Weld="-set floattype tandem_float"',
139 'nonstop-nfloat-x86_64' => {
141 lflags => '-Wxld="-set floattype neutral_float"',
143 'nonstop-tfloat-x86_64' => {
145 lflags => '-Wxld="-set floattype tandem_float"',
148 ######################################################################
150 'nonstop-model-put' => {
152 defines => ['_PUT_MODEL_',
153 '_REENTRANT', '_ENABLE_FLOSS_THREADS'],
156 'nonstop-model-spt' => {
158 defines => ['_SPT_MODEL_',
159 '_REENTRANT', '_THREAD_SUPPORT_FUNCTIONS'],
163 # Additional floss model that can be combined with any of the other models.
164 # If used without any of the other models, the entry that does so must
166 'nonstop-model-floss' => {
168 defines => ['OPENSSL_TANDEM_FLOSS'],
169 includes => ['/usr/local/include'],
170 ex_libs => '-lfloss',
173 ######################################################################
174 # Now for the entried themselves, let's combine things!
176 inherit_from => [ 'nonstop-common',
177 'nonstop-archenv-x86_64-oss',
178 'nonstop-ilp32', 'nonstop-nfloat-x86_64',
179 'nonstop-model-floss' ],
180 disable => ['threads'],
182 'nonstop-nsx_put' => {
183 inherit_from => [ 'nonstop-common',
184 'nonstop-archenv-x86_64-oss',
185 'nonstop-ilp32', 'nonstop-nfloat-x86_64',
186 'nonstop-model-put' ],
188 'nonstop-nsx_64' => {
189 inherit_from => [ 'nonstop-common',
190 'nonstop-archenv-x86_64-oss',
191 'nonstop-lp64-x86_64', 'nonstop-nfloat-x86_64',
192 'nonstop-model-floss' ],
193 disable => ['threads'],
195 'nonstop-nsx_64_put' => {
196 inherit_from => [ 'nonstop-common',
197 'nonstop-archenv-x86_64-oss',
198 'nonstop-lp64-x86_64', 'nonstop-nfloat-x86_64',
199 'nonstop-model-put' ],
201 'nonstop-nsx_spt' => {
202 inherit_from => [ 'nonstop-common',
203 'nonstop-archenv-x86_64-oss',
204 'nonstop-ilp32', 'nonstop-nfloat-x86_64',
205 'nonstop-model-spt' ],
207 'nonstop-nsx_spt_floss' => {
208 inherit_from => [ 'nonstop-common',
209 'nonstop-archenv-x86_64-oss',
210 'nonstop-ilp32', 'nonstop-nfloat-x86_64',
211 'nonstop-model-floss', 'nonstop-model-spt'],
214 inherit_from => [ 'nonstop-common',
215 'nonstop-archenv-x86_64-guardian',
216 'nonstop-ilp32', 'nonstop-nfloat-x86_64' ],
217 disable => ['threads'],
219 'nonstop-nsx_g_tandem' => {
220 inherit_from => [ 'nonstop-common',
221 'nonstop-archenv-x86_64-guardian',
222 'nonstop-ilp32', 'nonstop-tfloat-x86_64' ],
223 disable => ['threads'],
226 inherit_from => [ 'nonstop-nsx' ],
229 inherit_from => [ 'nonstop-common',
230 'nonstop-archenv-itanium-oss',
231 'nonstop-ilp32', 'nonstop-nfloat-itanium',
232 'nonstop-model-floss' ],
233 disable => ['threads'],
235 'nonstop-nse_put' => {
236 inherit_from => [ 'nonstop-common',
237 'nonstop-archenv-itanium-oss',
238 'nonstop-ilp32', 'nonstop-nfloat-itanium',
239 'nonstop-model-put' ],
241 'nonstop-nse_64' => {
242 inherit_from => [ 'nonstop-common',
243 'nonstop-archenv-itanium-oss',
244 'nonstop-lp64-itanium', 'nonstop-nfloat-itanium',
245 'nonstop-model-floss' ],
246 disable => ['threads'],
248 'nonstop-nse_64_put' => {
249 inherit_from => [ 'nonstop-common',
250 'nonstop-archenv-itanium-oss',
251 'nonstop-lp64-itanium', 'nonstop-nfloat-itanium',
252 'nonstop-model-put' ],
254 'nonstop-nse_spt' => {
255 inherit_from => [ 'nonstop-common',
256 'nonstop-archenv-itanium-oss',
257 'nonstop-ilp32', 'nonstop-nfloat-itanium',
258 'nonstop-model-spt' ],
260 'nonstop-nse_spt_floss' => {
261 inherit_from => [ 'nonstop-common',
262 'nonstop-archenv-itanium-oss',
263 'nonstop-ilp32', 'nonstop-nfloat-itanium',
264 'nonstop-model-floss', 'nonstop-model-spt' ],
267 inherit_from => [ 'nonstop-common',
268 'nonstop-archenv-itanium-guardian',
269 'nonstop-ilp32', 'nonstop-nfloat-itanium' ],
270 disable => ['threads'],
273 'nonstop-nse_g_tandem' => {
274 inherit_from => [ 'nonstop-common',
275 'nonstop-archenv-itanium-guardian',
276 'nonstop-ilp32', 'nonstop-tfloat-itanium' ],
277 disable => ['threads'],