From: Richard Levitte Date: Sun, 24 Jan 2016 16:07:27 +0000 (+0100) Subject: Now that Configure doesn't produce tools/c_rehash, mk1mf has to do it X-Git-Tag: OpenSSL_1_1_0-pre3~428 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e8cdcd52b33605b44390888e6aaa0548ca877b46;p=oweals%2Fopenssl.git Now that Configure doesn't produce tools/c_rehash, mk1mf has to do it Reviewed-by: Rich Salz --- diff --git a/util/mk1mf.pl b/util/mk1mf.pl index 6cece33e8e..98e44b05ce 100755 --- a/util/mk1mf.pl +++ b/util/mk1mf.pl @@ -751,9 +751,10 @@ headers: \$(HEADER) lib: \$(LIBS_DEP) \$(E_SHLIB) -exe: apps testapps -apps: \$(BIN_D)$o\$(E_EXE)$exep +exe: apps tools testapps +apps: \$(BIN_D)$o\$(E_EXE)$exep \$(BIN_D)${o}CA.pl testapps: \$(T_EXE) +tools: \$(BIN_D)${o}c_rehash install: all \$(MKDIR) \"\$(INSTALLTOP)\" @@ -778,7 +779,7 @@ reallyclean: EOF -$rules .= &do_rehash_rule("rehash.time", "certs apps"); +$rules .= &do_rehash_rule("rehash.time", "certs/demo apps tools"); $rules .= &do_test_rule("test", "rehash.time", "run_tests.pl"); my $platform_cpp_symbol = "MK1MF_PLATFORM_$platform"; @@ -807,7 +808,7 @@ if (open(IN,"crypto/buildinf.h")) } open (OUT,">>crypto/buildinf.h") || die "Can't open buildinf.h"; -printf OUT < "$to${o}$file.new" + mv "$to${o}$file.new" "$to${o}$file" +EOF + } + # Options picked up from the OPTIONS line in the top level Makefile # generated by Configure. diff --git a/util/pl/BC-32.pl b/util/pl/BC-32.pl index 3b2b85469c..36ad6823be 100644 --- a/util/pl/BC-32.pl +++ b/util/pl/BC-32.pl @@ -100,7 +100,8 @@ sub do_rehash_rule { $target: $deps set OPENSSL=\$(BIN_D)${o}openssl.exe set OPENSSL_DEBUG_MEMORY=on - \$(PERL) tools/c_rehash certs/demo + \$(PERL) \$(BIN_D)${o}c_rehash certs/demo + echo off > $target EOF return $ret } diff --git a/util/pl/VC-32.pl b/util/pl/VC-32.pl index 8cb4835180..73160e9ebd 100644 --- a/util/pl/VC-32.pl +++ b/util/pl/VC-32.pl @@ -306,7 +306,7 @@ sub do_rehash_rule { $target: $deps set OPENSSL=\$(BIN_D)${o}openssl.exe set OPENSSL_DEBUG_MEMORY=on - \$(PERL) tools/c_rehash certs/demo + \$(PERL) \$(BIN_D)${o}c_rehash certs/demo echo off > $target EOF return $ret diff --git a/util/pl/unix.pl b/util/pl/unix.pl index c1fa1ffb88..c1b2c26cf9 100644 --- a/util/pl/unix.pl +++ b/util/pl/unix.pl @@ -193,7 +193,7 @@ $target: $deps (OPENSSL="`pwd`/util/opensslwrap.sh"; \\ OPENSSL_DEBUG_MEMORY=on; \\ export OPENSSL OPENSSL_DEBUG_MEMORY; \\ - \$(PERL) tools/c_rehash certs/demo; \\ + \$(PERL) \$(BIN_D)${o}c_rehash certs/demo; \\ touch $target) EOF return $ret