From: Richard Levitte Date: Mon, 13 Jun 2016 20:01:08 +0000 (+0200) Subject: Move the Configure generated header files to the top build.info X-Git-Tag: OpenSSL_1_1_0-pre6~450 X-Git-Url: https://git.openssl.org/?a=commitdiff_plain;h=27ffb86c209c456c40ec82b80ebb922b5f377992;hp=4f858293a9b5a5db8c8af0725b6402d21626040b;p=openssl.git Move the Configure generated header files to the top build.info This turns these headers into build file generated ones. Reviewed-by: Rich Salz --- 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} -}