On Thursday 01 September 2005 10:04 am, Mike Russo wrote:
> Mike Frysinger wrote:
> >find attached a patch for this then, please test :)
>
> I think I just did a "#define RTLD_LOCAL RTLD_GLOBAL" (which should be
> defined everywhere) and it worked fine.
committed the patch i sent earlier then
> >then why not fix __imlib_TrimLoaderList ? i dont have cygwin to test
> > against, but what if you change the ".so" test in that func to ".dll" ?
>
> It does indeed work fine if you change ".so" to ".dll" -- i believe you
> could also make a symlink to the .dll files (Cygwin actually uses
> windows shortcut files to simulate soft links... insane, isn't it?)
how about the attached patch ?
-mike
Index: src/lib/image.c
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/imlib2/src/lib/image.c,v
retrieving revision 1.2
diff -u -p -r1.2 image.c
--- src/lib/image.c 16 Jan 2005 18:23:46 -0000 1.2
+++ src/lib/image.c 3 Sep 2005 21:01:58 -0000
@@ -663,7 +663,11 @@ __imlib_TrimLoaderList(char **list, int
if (!list[i])
continue;
ext = strrchr(list[i], '.');
- if ((ext) && (!strcasecmp(ext, ".so")))
+ if ((ext) && (!strcasecmp(ext, ".so"))
+#ifndef __linux__
+ && (!strcasecmp(ext, ".dll"))
+#endif
+ )
{
/* Don't add the same loader multiple times... */
if (!__imlib_ItemInList(ret, size, list[i]))