[sdlsound] Cross-compiling?

Ryan C. Gordon icculus at clutteredmind.org
Wed Apr 17 01:47:09 EDT 2002


> I tried this, and at first configure refused to build shared libraries.
> After adding AC_LIBTOOL_WIN32_DLL to configure.in I get the following:
>
> /bin/sh ./libtool --mode=link i386-mingw32msvc-gcc  -g -O0 -Werror -I/usr/local/cross-tools/i386-mingw32msvc/include -I/usr/local/cross-tools/i386-mingw32msvc/include/SDL -Dmain=SDL_main  -o libSDL_sound.la -rpath /usr/local/cross-tools/i386-mingw32msvc/lib -release 0.1          -version-info 5:0:0 SDL_sound.lo extra_rwops.lo audio_convert.lo decoders/libdecoders.la                decoders/timidity/libtimidity.la decoders/mpglib/libmpglib.la -L/usr/local/cross-tools/i386-mingw32msvc/lib -lmingw32 -lSDLmain -lSDL -mwindows
> ./libtool: test: =: unary operator expected
> ./libtool: test: !=: unary operator expected
> ./libtool: test: !=: unary operator expected
> ./libtool: test: =: unary operator expected
> ./libtool: test: !=: unary operator expected
> ./libtool: test: !=: unary operator expected
> libtool: link: warning: undefined symbols not allowed in i386-pc-mingw32msvc shared libraries
>
> And after that, cross-make.sh complete, but no shared libraries are built.
>
> Any idea how to get this to work?

The unary operator stuff always happens, cross compile or not.

I'm googling around. Perhaps remove the -fPIC compiler option?

More likely:
  http://mail.gnu.org/pipermail/libtool/2000-July/001770.html

Add -no-undefined to the libtool command line.

--ryan.






More information about the sdlsound mailing list