mirror of
https://github.com/openssl/openssl.git
synced 2024-12-19 15:03:38 +08:00
8864f0de7b
Instead, make the build type ("debug" or "release") available through $config{build_type} and let the configs themselves figure out what the usual settings (such as "cflags", "lflags" and so on) should be accordingly. The benefit with this is that we can now have debug and release variants of any setting, not just those Configure supports, and may also involve other factors (the MSVC flags /MD[d] and /MT[d] involve both build type and whether threading is enabled or not) Reviewed-by: Andy Polyakov <appro@openssl.org>
28 lines
936 B
Perl
28 lines
936 B
Perl
## -*- mode: perl; -*-
|
|
## Personal configuration targets
|
|
|
|
sub picker {
|
|
my %opts = @_;
|
|
return sub { add($opts{default} || (),
|
|
$opts{$config{build_type}} || ())->(); }
|
|
}
|
|
|
|
%targets = (
|
|
"levitte-linux-elf" => {
|
|
inherit_from => [ "linux-elf" ],
|
|
cflags => add(picker(debug => "-ggdb -g3")),
|
|
defines => add(picker(debug => "LEVITTE_DEBUG"),
|
|
{ separator => undef }),
|
|
build_scheme => [ "unified", "unix" ],
|
|
build_file => "Makefile",
|
|
},
|
|
"levitte-linux-x86_64" => {
|
|
inherit_from => [ "linux-x86_64" ],
|
|
cflags => add(picker(debug => "-ggdb -g3")),
|
|
defines => add(picker(debug => "LEVITTE_DEBUG"),
|
|
{ separator => undef }),
|
|
build_scheme => [ "unified", "unix" ],
|
|
build_file => "Makefile",
|
|
},
|
|
);
|