libcaca 0.99.beta19
[git/cygwin-packages/libcaca.git] / 0.99.16-plugins.patch
CommitLineData
d7e48049 1--- origsrc/libcaca-0.99.beta16/caca/Makefile.am 2008-07-05 11:20:04.000000000 -0500
2+++ src/libcaca-0.99.beta16/caca/Makefile.am 2008-08-06 12:22:10.250000000 -0500
3@@ -94,12 +94,12 @@
4
5 libx11_plugin_la_SOURCES = driver/x11.c
6 libx11_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(X11_CFLAGS)
7-libx11_plugin_la_LDFLAGS = -no-undefined -module -no-version
8+libx11_plugin_la_LDFLAGS = -no-undefined -module -avoid-version
9 libx11_plugin_la_LIBADD = libcaca.la $(X11_LIBS)
10
11 libgl_plugin_la_SOURCES = driver/gl.c
12 libgl_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(GL_CFLAGS) #$(FTGL_CFLAGS)
13-libgl_plugin_la_LDFLAGS = -no-undefined -module -no-version
14+libgl_plugin_la_LDFLAGS = -no-undefined -module -avoid-version
15 libgl_plugin_la_LIBADD = libcaca.la $(GL_LIBS) #$(FTGL_LIBS)
16 else
17 driver_source += driver/x11.c driver/gl.c
18--- origsrc/libcaca-0.99.beta16/caca/caca.c 2008-07-05 11:39:35.000000000 -0500
19+++ src/libcaca-0.99.beta16/caca/caca.c 2008-08-06 12:21:58.156250000 -0500
20@@ -28,6 +28,13 @@
21 # if defined(HAVE_DLFCN_H)
22 # include <dlfcn.h>
23 # endif
24+# if defined(__CYGWIN__)
25+# define SOPREFIX "cyg"
26+# define SOSUFFIX ".dll"
27+# else
28+# define SOPREFIX "lib"
29+# define SOSUFFIX ".so"
30+# endif
31 # endif
32 #endif
33
34@@ -429,11 +436,11 @@
35 char buf[512];
36 int (*sym) (caca_display_t *);
37
38- sprintf(buf, "%s/lib%s_plugin.so", PLUGINDIR, driver);
39+ sprintf(buf, "%s/%s%s_plugin%s", PLUGINDIR, SOPREFIX, driver, SOSUFFIX);
40 dp->plugin = dlopen(buf, RTLD_NOW);
41 if(!dp->plugin)
42 {
43- sprintf(buf, "lib%s_plugin.so", driver);
44+ sprintf(buf, "%s%s_plugin%s", SOPREFIX, driver, SOSUFFIX);
45 dp->plugin = dlopen(buf, RTLD_NOW);
46 if(!dp->plugin)
47 return -1;
This page took 0.031783 seconds and 5 git commands to generate.