diff options
-rwxr-xr-x | Configure | 8 | ||||
-rw-r--r-- | INSTALL.md | 8 | ||||
-rw-r--r-- | configdata.pm.in | 2 |
3 files changed, 13 insertions, 5 deletions
@@ -1446,7 +1446,7 @@ $target{build_scheme} = [ $target{build_scheme} ] my ($builder, $builder_platform, @builder_opts) = @{$target{build_scheme}}; -foreach my $checker (($builder_platform."-".$target{build_file}."-checker.pm", +foreach my $checker (($builder_platform."-".$config{build_file}."-checker.pm", $builder_platform."-checker.pm")) { my $checker_path = catfile($srcdir, "Configurations", $checker); if (-f $checker_path) { @@ -1912,8 +1912,8 @@ if ($builder eq "unified") { # Store the name of the template file we will build the build file from # in %config. This may be useful for the build file itself. my @build_file_template_names = - ( $builder_platform."-".$target{build_file}.".tmpl", - $target{build_file}.".tmpl" ); + ( $builder_platform."-".$config{build_file}.".tmpl", + $config{build_file}.".tmpl" ); my @build_file_templates = (); # First, look in the user provided directory, if given @@ -2930,7 +2930,7 @@ exit(0); # sub death_handler { die @_ if $^S; # To prevent the added message in eval blocks - my $build_file = $target{build_file} // "build file"; + my $build_file = $config{build_file} // "build file"; my @message = ( <<"_____", @_ ); Failure! $build_file wasn't produced. diff --git a/INSTALL.md b/INSTALL.md index b0947baf2c..ebde856a90 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -1304,6 +1304,14 @@ and `descrip.mms` on OpenVMS) from a suitable template in `Configurations/`, and defines various macros in `include/openssl/configuration.h` (generated from `include/openssl/configuration.h.in`. +If none of the generated build files suit your purpose, it's possible to +write your own build file template and give its name through the environment +variable `BUILDFILE`. For example, Ninja build files could be supported by +writing `Configurations/build.ninja.tmpl` and then configure with `BUILDFILE` +set like this (Unix syntax shown, you'll have to adapt for other platforms): + + $ BUILDFILE=build.ninja perl Configure [options...] + ### Out of Tree Builds OpenSSL can be configured to build in a build directory separate from the diff --git a/configdata.pm.in b/configdata.pm.in index 840e23b6c1..68439ae93c 100644 --- a/configdata.pm.in +++ b/configdata.pm.in @@ -91,7 +91,7 @@ unless (caller) { # We do that in two steps, where the first step emits perl # snippets. - my $buildfile = $target{build_file}; + my $buildfile = $config{build_file}; my $buildfile_template = "$buildfile.in"; my @autowarntext = ( 'WARNING: do not edit!', |