From: Roland McGrath Date: Mon, 13 Jul 1992 21:51:47 +0000 (+0000) Subject: Formerly commands.c.~9~ X-Git-Tag: 3.70.2~670 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8ef3af8bed76e41b3fde39df021b086cf88b2b04;p=thirdparty%2Fmake.git Formerly commands.c.~9~ --- diff --git a/commands.c b/commands.c index 29e32fa5..b1bc62d9 100644 --- a/commands.c +++ b/commands.c @@ -175,7 +175,17 @@ set_file_variables (file) unsigned int Dlen, Flen; c = dep_name (d); - len = strlen (c); + +#ifndef NO_ARCHIVES + if (ar_name (c)) + { + c = index (c, '(') + 1; + len = strlen (c) - 1; + } + else +#endif + len = strlen (c); + bcopy (c, cp, len); cp += len; *cp++ = ' ';