Missing extension on dependency, .d file is not always made (e.g. when input
authorBen Laurie <ben@links.org>
Sat, 20 Feb 2016 12:50:30 +0000 (12:50 +0000)
committerBen Laurie <ben@links.org>
Sat, 20 Feb 2016 16:56:44 +0000 (16:56 +0000)
is a .s).

Reviewed-by: Richard Levitte <levitte@openssl.org>
Configurations/unix-Makefile.tmpl

index 61ee7a6ab075b85c3ac28cd30f1688cc76cadcde..e226eb703f21475a4a4857cc3ed880a79209a39a 100644 (file)
@@ -844,7 +844,8 @@ EOF
       }
       return <<"EOF";
 $obj\$(DEP_EXT): $deps
-       \$(CC) \$(CFLAGS) $ecflags$incs -MM -MF \$\@ -MQ $obj $srcs
+       \$(CC) \$(CFLAGS) $ecflags$incs -MM -MF \$\@ -MQ $obj\$(OBJ_EXT) $srcs
+       touch \$\@
 $obj\$(OBJ_EXT): $obj\$(DEP_EXT)
        \$(CC) \$(CFLAGS) $ecflags$incs -c -o \$\@ $srcs
 EOF