mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
3b6c4b0736
It will return the last expression from the input file. We also use this in read_config, which slightly changes what's expected of Configurations/*.conf. They do not have to assign %targets specifically. On the other hand, the table of configs MUST be the last expression in each of those files. Reviewed-by: Andy Polyakov <appro@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4840)
30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
my %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_VERSION_NUMBER)",
|
|
},
|
|
"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",
|
|
},
|
|
);
|