Skip to content

Commit

Permalink
Move Haiku configuration to separate config file to denote
Browse files Browse the repository at this point in the history
the fact that it's community-supported target.

Reviewed-by: Rich Salz <rsalz@openssl.org>
  • Loading branch information
Andy Polyakov committed May 19, 2016
1 parent e33826f commit 6c4be50
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 37 deletions.
30 changes: 0 additions & 30 deletions Configurations/10-main.conf
Expand Up @@ -1715,36 +1715,6 @@ sub vms_info {
shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
ranlib => "$ENV{'RANLIB'}",
},
"haiku-common" => {
template => 1,
cc => "cc",
cflags => add_before(picker(default => "-DL_ENDIAN -Wall",
debug => "-g -O0",
release => "-O2"),
threads("-D_REENTRANT")),
sys_id => "HAIKU",
lflags => "-lnetwork",
perlasm_scheme => "elf",
thread_scheme => "pthreads",
dso_scheme => "dlfcn",
shared_target => "haiku-shared",
shared_cflag => "-fPIC",
shared_ldflag => "-shared",
shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
},
"haiku-x86" => {
inherit_from => [ "haiku-common", asm("x86_elf_asm") ],
cflags => add(picker(default => "",
release => "-fomit-frame-pointer")),
bn_ops => "BN_LLONG",
},
# Haiku builds with no-asm
"haiku-x86_64" => {
inherit_from => [ "haiku-common", asm("x86_64_asm") ],
cflags => add("-m64"),
bn_ops => "SIXTY_FOUR_BIT_LONG",
},


##### VMS
"vms-generic" => {
Expand Down
29 changes: 29 additions & 0 deletions Configurations/50-haiku.conf
@@ -0,0 +1,29 @@
%targets = (
"haiku-common" => {
template => 1,
cc => "cc",
cflags => add_before(picker(default => "-DL_ENDIAN -Wall -include \$(SRCDIR)/os-dep/haiku.h",
debug => "-g -O0",
release => "-O2"),
threads("-D_REENTRANT")),
sys_id => "HAIKU",
ex_libs => "-lnetwork",
perlasm_scheme => "elf",
thread_scheme => "pthreads",
dso_scheme => "dlfcn",
shared_target => "gnu-shared",
shared_cflag => "-fPIC",
shared_ldflag => "-shared",
shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
},
"haiku-x86" => {
inherit_from => [ "haiku-common", asm("x86_elf_asm") ],
cflags => add(picker(release => "-fomit-frame-pointer")),
bn_ops => "BN_LLONG",
},
"haiku-x86_64" => {
inherit_from => [ "haiku-common" ],
cflags => add("-m64"),
bn_ops => "SIXTY_FOUR_BIT_LONG",
},
);
7 changes: 0 additions & 7 deletions e_os.h
Expand Up @@ -504,13 +504,6 @@ struct servent *getservbyname(const char *name, const char *proto);
# endif
/* end vxworks */

/* haiku */
# if defined(OPENSSL_SYS_HAIKU)
# include <sys/select.h>
# include <sys/time.h>
# endif
/* end haiku */

#define OSSL_NELEM(x) (sizeof(x)/sizeof(x[0]))

#ifdef __cplusplus
Expand Down
2 changes: 2 additions & 0 deletions os-dep/haiku.h
@@ -0,0 +1,2 @@
#include <sys/select.h>
#include <sys/time.h>

0 comments on commit 6c4be50

Please sign in to comment.