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 61ee7a6..e226eb7 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