From 27ffb86c209c456c40ec82b80ebb922b5f377992 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 13 Jun 2016 22:01:08 +0200 Subject: [PATCH 1/1] Move the Configure generated header files to the top build.info This turns these headers into build file generated ones. Reviewed-by: Rich Salz --- Configure | 17 ----------------- build.info | 12 ++++++++++++ 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/Configure b/Configure index cc36087aa7..70350f439a 100755 --- a/Configure +++ b/Configure @@ -463,17 +463,6 @@ while ((my $first, my $second) = (shift @list, shift @list)) { # To remove something from %disabled, use "enable-foo". # For symmetry, "disable-foo" is a synonym for "no-foo". -my @generated_headers = ( - "include/openssl/opensslconf.h", - "crypto/include/internal/bn_conf.h", - "crypto/include/internal/dso_conf.h" - ); - -my @generated_by_make_headers = ( - "crypto/buildinf.h" - ); - - my $no_sse2=0; &usage if ($#ARGV < 0); @@ -1936,12 +1925,6 @@ print "THIRTY_TWO_BIT mode\n" if $config{b32}; print "BN_LLONG mode\n" if $config{bn_ll}; print "RC4 uses $config{rc4_int}\n" if $config{rc4_int} ne $def_int; -for (@generated_headers) { - mkpath(catdir($blddir, dirname($_))); - run_dofile(catfile($blddir, $_), - catfile($srcdir, $_.".in")); -} - my %builders = ( unified => sub { run_dofile(catfile($blddir, $target{build_file}), diff --git a/build.info b/build.info index 6bc70c6939..6f057cd4c9 100644 --- a/build.info +++ b/build.info @@ -6,6 +6,18 @@ INCLUDE[libcrypto]="{- rel2abs(catdir($builddir,"include")) -}" . crypto/include INCLUDE[libssl]="{- rel2abs(catdir($builddir,"include")) -}" . include DEPEND[libssl]=libcrypto +# Empty DEPEND "indices" means the dependencies are expected to be built +# unconditionally before anything else. +DEPEND[]=include/openssl/opensslconf.h crypto/include/internal/bn_conf.h \ + crypto/include/internal/dso_conf.h +DEPEND[include/openssl/opensslconf.h]=configdata.pm +GENERATE[include/openssl/opensslconf.h]=include/openssl/opensslconf.h.in +DEPEND[crypto/include/internal/bn_conf.h]=configdata.pm +GENERATE[crypto/include/internal/bn_conf.h]=crypto/include/internal/bn_conf.h.in +DEPEND[crypto/include/internal/dso_conf.h]=configdata.pm +GENERATE[crypto/include/internal/dso_conf.h]=crypto/include/internal/dso_conf.h.in + + IF[{- $config{target} =~ /^Cygwin/ -}] SHARED_NAME[libcrypto]=cygcrypto-{- $config{shlib_major}.".".$config{shlib_minor} -} SHARED_NAME[libssl]=cygssl-{- $config{shlib_major}.".".$config{shlib_minor} -} -- 2.34.1