Browse Source

z/OS: Make it more usable

Introducing threading and shared libs in the z/OS build
master
David Lanzendörfer 3 weeks ago
parent
commit
7fd6609590
6 changed files with 16 additions and 4 deletions
  1. +5
    -2
      Configurations/50-os390.conf
  2. +3
    -0
      Configurations/shared-info.pl
  3. +1
    -1
      crypto/bio/bio_addr.c
  4. +1
    -1
      crypto/dso/dso_dlfcn.c
  5. +3
    -0
      engines/e_loader_attic.c
  6. +3
    -0
      engines/e_ossltest.c

+ 5
- 2
Configurations/50-os390.conf View File

@ -4,8 +4,11 @@
"OS390-Unix" => {
inherit_from => [ "BASE_unix" ],
cc => "cc",
cflags => "-O -DB_ENDIAN -DCHARSET_EBCDIC -DNO_SYS_PARAM_H -DBROKEN_AI_PASSIVE -DHAVE_STRINGS_H",
cflags => "-O -DB_ENDIAN -DCHARSET_EBCDIC -DNO_SYS_PARAM_H -DHAVE_STRINGS_H -D__IBM_ZOS__ -D_XOPEN_SOURCE_EXTENDED=1 -D_UNIX03_THREADS -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200112L",
bn_ops => "THIRTY_TWO_BIT RC4_CHAR",
thread_scheme => "(unknown)",
dso_scheme => "DLFCN",
shared_target => "zos-shared",
thread_scheme => "pthread",
enable => add("dso", "shared", "dynamic-engine", "threads"),
}
);

+ 3
- 0
Configurations/shared-info.pl View File

@ -24,6 +24,9 @@ sub detect_gnu_cc {
my %shared_info;
%shared_info = (
'zos-shared' => {
shared_ldflag => '-W "l,xplink,dll" -W "c,langlvl(extended),float(ieee),xplink,dll,exportall"',
},
'gnu-shared' => {
shared_ldflag => '-shared -Wl,-Bsymbolic',
shared_sonameflag => '-Wl,-soname=',


+ 1
- 1
crypto/bio/bio_addr.c View File

@ -42,7 +42,7 @@ static CRYPTO_ONCE bio_lookup_init = CRYPTO_ONCE_STATIC_INIT;
* we use our own implementation instead, using gethostbyname,
* getservbyname and a few other.
*/
#ifdef BROKEN_AI_PASSIVE
#if defined(__IBM_ZOS__)
#undef AI_PASSIVE
#endif


+ 1
- 1
crypto/dso/dso_dlfcn.c View File

@ -30,7 +30,7 @@
# if defined(__SCO_VERSION__) || defined(_SCO_ELF) || \
(defined(__osf__) && !defined(RTLD_NEXT)) || \
(defined(__OpenBSD__) && !defined(RTLD_SELF)) || \
defined(__ANDROID__) || defined(__TANDEM)
defined(__ANDROID__) || defined(__TANDEM) || defined(__IBM_ZOS__)
# undef HAVE_DLINFO
# endif
# endif


+ 3
- 0
engines/e_loader_attic.c View File

@ -16,6 +16,9 @@
/* #include "e_os.h" */
#include <string.h>
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
#include <sys/stat.h>
#include <ctype.h>
#include <assert.h>


+ 3
- 0
engines/e_ossltest.c View File

@ -27,6 +27,9 @@
#include <stdio.h>
#include <string.h>
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
#include <openssl/engine.h>
#include <openssl/sha.h>


Loading…
Cancel
Save