summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-06-13 22:01:08 +0200
committerRichard Levitte <levitte@openssl.org>2016-06-14 22:11:38 +0200
commit27ffb86c209c456c40ec82b80ebb922b5f377992 (patch)
tree1a9990cc8e8d7440d9c0ea97efa4c9825da85a4a
parent4f858293a9b5a5db8c8af0725b6402d21626040b (diff)
downloadopenssl-new-27ffb86c209c456c40ec82b80ebb922b5f377992.tar.gz
Move the Configure generated header files to the top build.info
This turns these headers into build file generated ones. Reviewed-by: Rich Salz <rsalz@openssl.org>
-rwxr-xr-xConfigure17
-rw-r--r--build.info12
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} -}