From: Richard Levitte Date: Sun, 17 Dec 2017 11:56:24 +0000 (+0100) Subject: Restore the use of LDCMD when linking applications X-Git-Tag: OpenSSL_1_1_1-pre1~264 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b903fb604a9759a54f02e3675fcec2a0e571e3c0;p=openssl Restore the use of LDCMD when linking applications It is a hack, but it existed in the recently removed Makefile.shared, and its use is documented in fuzz/README.md, so we cannot drop it now. Fixes https://github.com/google/oss-fuzz/issues/1037 Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/4947) --- diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl index a514833953..43b1f03a2b 100644 --- a/Configurations/unix-Makefile.tmpl +++ b/Configurations/unix-Makefile.tmpl @@ -1053,7 +1053,7 @@ EOF return <<"EOF"; $bin$exeext: $objs $deps rm -f $bin$exeext - $cmd $cmdflags \$(LDFLAGS) \$(BIN_LDFLAGS) -o $bin$exeext $objs \\ + \$\${LDCMD:-$cmd} $cmdflags \$(LDFLAGS) \$(BIN_LDFLAGS) -o $bin$exeext $objs \\ \$(PLIB_LDFLAGS) $linklibs \$(EX_LIBS) EOF }