Detect "-libname" just like "-l ibname" for platform-specific modifications

This commit is contained in:
Pierre Pronchery 2009-11-01 16:20:01 +00:00
parent 1ce77b39b1
commit 2bac283267

View File

@ -527,6 +527,11 @@ static void _binary_ldflags(Configure * configure, FILE * fp,
{
snprintf(buf, sizeof(buf), "-l %s", libs[i]);
if((q = string_find(p, buf)) == NULL)
{
snprintf(buf, sizeof(buf), "-l%s", libs[i]);
q = string_find(p, buf);
}
if(q == NULL)
continue;
memmove(q, q + strlen(buf), strlen(q) - strlen(buf) + 1);
}