allow aliases without library

This commit is contained in:
zimoch
2011-03-07 16:51:35 +00:00
parent 26f41d4e8e
commit 5bedc64680
+3 -1
View File
@@ -146,7 +146,9 @@ int require(char* lib, char* vers)
/* no munched lib */
libname[strlen(libname)-6]=0; /* skip ".munch" */
}
if (stat(libname, &filestat) == ERROR)
if (stat(libname, &filestat) == ERROR &&
/* allow alias without library */
stat(depname, &filestat) == ERROR)
{
/* still no library found */
printf("Library %s not found\n", libname);