test/recipes/90-test_shlibload.t needs $target{shared_extension}
[openssl.git] / Configurations / 50-haiku.conf
1 my %targets = (
2     "haiku-common" => {
3         template         => 1,
4         CC               => "cc",
5         CFLAGS           => add_before(picker(default => "-Wall",
6                                               debug   => "-g -O0",
7                                               release => "-O2")),
8         cflags           => add_before("-DL_ENDIAN -include \$(SRCDIR)/os-dep/haiku.h",
9                                        threads("-D_REENTRANT")),
10         sys_id           => "HAIKU",
11         ex_libs          => "-lnetwork",
12         perlasm_scheme   => "elf",
13         thread_scheme    => "pthreads",
14         dso_scheme       => "dlfcn",
15         shared_target    => "gnu-shared",
16         shared_cflag     => "-fPIC",
17         shared_ldflag    => "-shared",
18         shared_extension => ".so.\$(SHLIB_VERSION_NUMBER)",
19     },
20     "haiku-x86" => {
21         inherit_from     => [ "haiku-common", asm("x86_elf_asm") ],
22         CFLAGS           => add(picker(release => "-fomit-frame-pointer")),
23         bn_ops           => "BN_LLONG",
24     },
25     "haiku-x86_64" => {
26         inherit_from     => [ "haiku-common" ],
27         cflags           => add("-m64"),
28         bn_ops           => "SIXTY_FOUR_BIT_LONG",
29     },
30 );