mirror of
https://github.com/openssl/openssl.git
synced 2024-12-03 05:41:46 +08:00
abe256e795
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)
31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
my %targets = (
|
|
"haiku-common" => {
|
|
template => 1,
|
|
CC => "cc",
|
|
CFLAGS => add_before(picker(default => "-Wall",
|
|
debug => "-g -O0",
|
|
release => "-O2")),
|
|
cflags => add_before("-DL_ENDIAN -include \$(SRCDIR)/os-dep/haiku.h",
|
|
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",
|
|
},
|
|
);
|