libtool/libtool-1.5.22-relativepath.patch
Karsten Hopp f79ec8ce5e - fix ltdl file open (#225116)
- fix lt_unset usage (#227454)
- spec file cleanups for merge review
2007-02-08 15:40:29 +00:00

16 lines
492 B
Diff

--- libtool-1.5.22/libltdl/ltdl.c.relativepath 2007-02-08 09:20:54.000000000 -0500
+++ libtool-1.5.22/libltdl/ltdl.c 2007-02-08 09:46:41.000000000 -0500
@@ -3203,9 +3203,10 @@
}
#endif
}
- if (!file)
+ if (!file)
{
- file = fopen (filename, LT_READTEXT_MODE);
+ if(strstr(filename,"/") || strcmp((filename + strlen(filename) - 3), ".la") != 0)
+ file = fopen (filename, LT_READTEXT_MODE);
}
/* If we didn't find the file by now, it really isn't there. Set