Commit d19ae91c authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Win32: Use CDDB without iconv

This makes the plugin stay at a reasonable size (120kB vs 1090kB stripped)
This might not be optimal though...
parent f39089df
......@@ -1430,10 +1430,11 @@ libcddb: libcddb-$(CDDB_VERSION).tar.bz2
ifdef HAVE_WIN32
.cddb: libcddb .regex
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) --disable-shared --enable-static --without-iconv CFLAGS="$(CFLAGS) -D_BSD_SOCKLEN_T_=int" && make && make install)
else
.cddb: libcddb
endif
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) --disable-shared --enable-static CFLAGS="$(CFLAGS) -D_BSD_SOCKLEN_T_=int" LDFLAGS="$(LDFLAGS) -liconv" && make && make install)
endif
touch $@
CLEAN_FILE += .cddb
......
......@@ -27,3 +27,13 @@
-Libs: -L${libdir} -lcddb @LIBICONV@
+Libs: -L${libdir} -lcddb ${libdir}/libregex.a @LIBICONV@
Cflags: -I${includedir}
--- include/cddb/cddb_ni.h.orig 2009-10-25 21:58:20.000000000 +0100
+++ include/cddb/cddb_ni.h 2009-10-25 21:58:46.000000000 +0100
@@ -35,6 +35,7 @@
# include <iconv.h>
#else
typedef void *iconv_t; /* for code uniformity */
+ #define ICONV_CONST const
#endif
#ifdef HAVE_WINDOWS_H
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment