2017-12-01 22:29:05 +08:00
|
|
|
my %targets = (
|
2016-05-01 20:33:19 +08:00
|
|
|
"haiku-common" => {
|
|
|
|
template => 1,
|
Make "make variables" config attributes for overridable flags
With the support of "make variables" comes the possibility for the
user to override them. However, we need to make a difference between
defaults that we use (and that should be overridable by the user) and
flags that are crucial for building OpenSSL (should not be
overridable).
Typically, overridable flags are those setting optimization levels,
warnings levels, that kind of thing, while non-overridable flags are,
for example, macros that indicate aspects of how the config target
should be treated, such as L_ENDIAN and B_ENDIAN.
We do that differentiation by allowing upper case attributes in the
config targets, named exactly like the "make variables" we support,
and reserving the lower case attributes for non-overridable project
flags.
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5534)
2018-03-07 03:35:30 +08:00
|
|
|
CC => "cc",
|
|
|
|
CFLAGS => add_before(picker(default => "-Wall",
|
2016-05-01 20:33:19 +08:00
|
|
|
debug => "-g -O0",
|
Make "make variables" config attributes for overridable flags
With the support of "make variables" comes the possibility for the
user to override them. However, we need to make a difference between
defaults that we use (and that should be overridable by the user) and
flags that are crucial for building OpenSSL (should not be
overridable).
Typically, overridable flags are those setting optimization levels,
warnings levels, that kind of thing, while non-overridable flags are,
for example, macros that indicate aspects of how the config target
should be treated, such as L_ENDIAN and B_ENDIAN.
We do that differentiation by allowing upper case attributes in the
config targets, named exactly like the "make variables" we support,
and reserving the lower case attributes for non-overridable project
flags.
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5534)
2018-03-07 03:35:30 +08:00
|
|
|
release => "-O2")),
|
|
|
|
cflags => add_before("-DL_ENDIAN -include \$(SRCDIR)/os-dep/haiku.h",
|
2016-05-01 20:33:19 +08:00
|
|
|
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",
|
2017-07-19 16:13:41 +08:00
|
|
|
shared_extension => ".so.\$(SHLIB_VERSION_NUMBER)",
|
2016-05-01 20:33:19 +08:00
|
|
|
},
|
|
|
|
"haiku-x86" => {
|
|
|
|
inherit_from => [ "haiku-common", asm("x86_elf_asm") ],
|
Make "make variables" config attributes for overridable flags
With the support of "make variables" comes the possibility for the
user to override them. However, we need to make a difference between
defaults that we use (and that should be overridable by the user) and
flags that are crucial for building OpenSSL (should not be
overridable).
Typically, overridable flags are those setting optimization levels,
warnings levels, that kind of thing, while non-overridable flags are,
for example, macros that indicate aspects of how the config target
should be treated, such as L_ENDIAN and B_ENDIAN.
We do that differentiation by allowing upper case attributes in the
config targets, named exactly like the "make variables" we support,
and reserving the lower case attributes for non-overridable project
flags.
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5534)
2018-03-07 03:35:30 +08:00
|
|
|
CFLAGS => add(picker(release => "-fomit-frame-pointer")),
|
2016-05-01 20:33:19 +08:00
|
|
|
bn_ops => "BN_LLONG",
|
|
|
|
},
|
|
|
|
"haiku-x86_64" => {
|
|
|
|
inherit_from => [ "haiku-common" ],
|
|
|
|
cflags => add("-m64"),
|
|
|
|
bn_ops => "SIXTY_FOUR_BIT_LONG",
|
|
|
|
},
|
|
|
|
);
|