[Vorbis-dev] Cross compiling Linux -> windows has broken

Erik de Castro Lopo mle+la at mega-nerd.com
Sat May 3 17:01:48 PDT 2008


Erik de Castro Lopo wrote:

> The cross-compile issue seems to be something to do libtool. I'm
> still looking at that.

I think this is a bug in libtool, but the following patch works
around it (tested on Linux native compile as well):

-------------8<-------------8<-------------8<-------------8<-------------
--- lib/Makefile.am     (revision 14831)
+++ lib/Makefile.am     (working copy)
@@ -20,11 +20,11 @@
 
 libvorbisfile_la_SOURCES = vorbisfile.c
 libvorbisfile_la_LDFLAGS = -no-undefined -version-info @VF_LIB_CURRENT@:@VF_LIB_REVISION@:@VF_LIB_AGE@
-libvorbisfile_la_LIBADD = libvorbis.la
+libvorbisfile_la_LIBADD = @OGG_LIBS@ libvorbis.la
 
 libvorbisenc_la_SOURCES = vorbisenc.c 
 libvorbisenc_la_LDFLAGS = -no-undefined -version-info @VE_LIB_CURRENT@:@VE_LIB_REVISION@:@VE_LIB_AGE@
-libvorbisenc_la_LIBADD = libvorbis.la
+libvorbisenc_la_LIBADD = @OGG_LIBS@ libvorbis.la
 
 EXTRA_PROGRAMS = barkmel tone psytune
 CLEANFILES = $(EXTRA_PROGRAMS)
-------------8<-------------8<-------------8<-------------8<-------------

Ok, to commit?

Cheers,
Erik
-- 
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
"One World, one Web, one Browser." - Microsoft promotion
"Ein Volk, ein Reich, ein Fuhrer." - Adolf Hitler


More information about the Vorbis-dev mailing list