summaryrefslogtreecommitdiffstats
path: root/libtool-1.5.22-relativepath.patch
blob: 4b0b30e096815b025d61e8dae6f91c5d060f0cff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- 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