Fix LDFLAGSF and LDFLAGS

This commit is contained in:
Pierre Pronchery 2006-06-18 21:51:19 +00:00
parent 3d6608a4fa
commit 796172377f

View File

@ -359,7 +359,7 @@ static void _binary_ldflags(Configure * configure, Config * config, FILE * fp,
snprintf(buf, sizeof(buf), "-l %s", libs[i]); snprintf(buf, sizeof(buf), "-l %s", libs[i]);
if((q = string_find(p, buf)) == NULL) if((q = string_find(p, buf)) == NULL)
continue; continue;
memmove(q, q+strlen(buf), strlen(buf)); memmove(q, q + strlen(buf), strlen(q) - strlen(buf) + 1);
} }
fprintf(fp, "%s%s", p, "\n"); fprintf(fp, "%s%s", p, "\n");
free(p); free(p);