Skip to content

Commit 6c4be50

Browse files
author
Andy Polyakov
committed
Move Haiku configuration to separate config file to denote
the fact that it's community-supported target. Reviewed-by: Rich Salz <[email protected]>
1 parent e33826f commit 6c4be50

File tree

4 files changed

+31
-37
lines changed

4 files changed

+31
-37
lines changed

Configurations/10-main.conf

-30
Original file line numberDiff line numberDiff line change
@@ -1715,36 +1715,6 @@ sub vms_info {
17151715
shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
17161716
ranlib => "$ENV{'RANLIB'}",
17171717
},
1718-
"haiku-common" => {
1719-
template => 1,
1720-
cc => "cc",
1721-
cflags => add_before(picker(default => "-DL_ENDIAN -Wall",
1722-
debug => "-g -O0",
1723-
release => "-O2"),
1724-
threads("-D_REENTRANT")),
1725-
sys_id => "HAIKU",
1726-
lflags => "-lnetwork",
1727-
perlasm_scheme => "elf",
1728-
thread_scheme => "pthreads",
1729-
dso_scheme => "dlfcn",
1730-
shared_target => "haiku-shared",
1731-
shared_cflag => "-fPIC",
1732-
shared_ldflag => "-shared",
1733-
shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
1734-
},
1735-
"haiku-x86" => {
1736-
inherit_from => [ "haiku-common", asm("x86_elf_asm") ],
1737-
cflags => add(picker(default => "",
1738-
release => "-fomit-frame-pointer")),
1739-
bn_ops => "BN_LLONG",
1740-
},
1741-
# Haiku builds with no-asm
1742-
"haiku-x86_64" => {
1743-
inherit_from => [ "haiku-common", asm("x86_64_asm") ],
1744-
cflags => add("-m64"),
1745-
bn_ops => "SIXTY_FOUR_BIT_LONG",
1746-
},
1747-
17481718

17491719
##### VMS
17501720
"vms-generic" => {

Configurations/50-haiku.conf

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
%targets = (
2+
"haiku-common" => {
3+
template => 1,
4+
cc => "cc",
5+
cflags => add_before(picker(default => "-DL_ENDIAN -Wall -include \$(SRCDIR)/os-dep/haiku.h",
6+
debug => "-g -O0",
7+
release => "-O2"),
8+
threads("-D_REENTRANT")),
9+
sys_id => "HAIKU",
10+
ex_libs => "-lnetwork",
11+
perlasm_scheme => "elf",
12+
thread_scheme => "pthreads",
13+
dso_scheme => "dlfcn",
14+
shared_target => "gnu-shared",
15+
shared_cflag => "-fPIC",
16+
shared_ldflag => "-shared",
17+
shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
18+
},
19+
"haiku-x86" => {
20+
inherit_from => [ "haiku-common", asm("x86_elf_asm") ],
21+
cflags => add(picker(release => "-fomit-frame-pointer")),
22+
bn_ops => "BN_LLONG",
23+
},
24+
"haiku-x86_64" => {
25+
inherit_from => [ "haiku-common" ],
26+
cflags => add("-m64"),
27+
bn_ops => "SIXTY_FOUR_BIT_LONG",
28+
},
29+
);

e_os.h

-7
Original file line numberDiff line numberDiff line change
@@ -504,13 +504,6 @@ struct servent *getservbyname(const char *name, const char *proto);
504504
# endif
505505
/* end vxworks */
506506

507-
/* haiku */
508-
# if defined(OPENSSL_SYS_HAIKU)
509-
# include <sys/select.h>
510-
# include <sys/time.h>
511-
# endif
512-
/* end haiku */
513-
514507
#define OSSL_NELEM(x) (sizeof(x)/sizeof(x[0]))
515508

516509
#ifdef __cplusplus

os-dep/haiku.h

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#include <sys/select.h>
2+
#include <sys/time.h>

0 commit comments

Comments
 (0)