From: Andy Polyakov <appro@openssl.org>
Date: Tue, 7 Nov 2017 21:01:53 +0000 (+0100)
Subject: Configurations/unix-Makefile.tmpl: fix HP-UX build.
X-Git-Tag: OpenSSL_1_1_1-pre1~456
X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b6705d4893d1566c3a5427e387ce99344497758d;p=oweals%2Fopenssl.git

Configurations/unix-Makefile.tmpl: fix HP-UX build.

HP-UX make doesn't recognize $< in explict target rules, only in
inference ones such as .c.o.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4697)
---

diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl
index 617d3b91fb..dfd80c2071 100644
--- a/Configurations/unix-Makefile.tmpl
+++ b/Configurations/unix-Makefile.tmpl
@@ -856,7 +856,7 @@ EOF
           }
           return <<"EOF";
 $args{src}: $args{generator}->[0] $deps
-	\$(CC) $incs \$(CFLAGS) -E \$< | \\
+	\$(CC) $incs \$(CFLAGS) -E $args{generator}->[0] | \\
 	\$(PERL) -ne '/^#(line)?\\s*[0-9]+/ or print' > \$@
 EOF
       }