Hello, I build a cross compiler for my GNU/Linux operating system to build Windows binaries. To do this I compiled binutils-2.21, gcc-4.6.0, mingwrt-3.15.2-mingw32 and w32api-3.13-mingw32 with the correct options. It works well in some cases: -compile goattracker -compile xmp -compile SDL -compile SDL_ttf -compile SDL_net -compile libiconv -compile zlib -compile freetype But in some other cases (SDL_mixer) I got a problem: $ export PKG_CONFIG_PATH=/usr/i686-pc-mingw32/lib/pkgconfig $ ./configure --prefix=/usr/i686-pc-mingw32 --host=i686-pc-mingw32 --disable-music-mod $ make /bin/sh ./libtool --mode=link i686-pc-mingw32-gcc -o build/libSDL_mixer.la build/effect_position.lo build/effect_stereoreverse.lo build/effects_internal.lo build/load_aiff.lo build/load_voc.lo build/mixer.lo build/music.lo build/wavestream.lo build/common.lo build/ctrlmode.lo build/filter.lo build/instrum.lo build/mix.lo build/output.lo build/playmidi.lo build/readmidi.lo build/resample.lo build/sdl_a.lo build/sdl_c.lo build/tables.lo build/timidity.lo build/native_midi_common.lo build/native_midi_mac.lo build/native_midi_macosx.lo build/native_midi_win32.lo build/dynamic_mp3.lo build/version.o -mwindows -L/usr/i686-pc-mingw32/lib -lmingw32 -lSDLmain -lSDL -lwinmm -L/usr/lib -lsmpeg -mwindows -L/usr/i686-pc-mingw32/lib -lmingw32 -lSDLmain -lSDL -lm -no-undefined -rpath /usr/i686-pc-mingw32/lib -release 1.2 -version-info 12:0:12 *** Warning: Linking the shared library build/libSDL_mixer.la against the non-libtool *** objects build/version.o is not portable! libtool: link: i686-pc-mingw32-gcc -shared build/.libs/effect_position.o build/.libs/effect_stereoreverse.o build/.libs/effects_internal.o build/.libs/load_aiff.o build/.libs/load_voc.o build/.libs/mixer.o build/.libs/music.o build/.libs/wavestream.o build/.libs/common.o build/.libs/ctrlmode.o build/.libs/filter.o build/.libs/instrum.o build/.libs/mix.o build/.libs/output.o build/.libs/playmidi.o build/.libs/readmidi.o build/.libs/resample.o build/.libs/sdl_a.o build/.libs/sdl_c.o build/.libs/tables.o build/.libs/timidity.o build/.libs/native_midi_common.o build/.libs/native_midi_mac.o build/.libs/native_midi_macosx.o build/.libs/native_midi_win32.o build/.libs/dynamic_mp3.o build/version.o -L/usr/i686-pc-mingw32/lib -L/usr/lib /usr/lib/libsmpeg.so /usr/lib/libSDL.so -ldl -lvga -lpthread /usr/lib/libstdc++.so -lmingw32 /usr/i686-pc-mingw32/lib/libSDLmain.a /usr/i686-pc-mingw32/lib/libSDL.dll.a -luser32 -lgdi32 -lwinmm -mwindows -mwindows -pthread -o build/.libs/SDL_mixer.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker build/.libs/libSDL_mixer.dll.a i686-pc-mingw32-gcc: error: unrecognized option '-pthread' make: *** [build/libSDL_mixer.la] Error 1 I already encountered this problem while cross compiling other programs and it is boring because I need to edit each Makefile in order to replace "-pthread" by "-lpthread". But this time, "-pthread" isn't present in the Makefile... So no way to resolve like previously. How to have this "-pthread" option enabled on my cross compiler ? Why the configure script doesn't detect that it need use "-lpthread" instead of "-pthread" ? Thank you. Regards. -- YuGiOhJCJ <yugiohjcj-mailinglist@xxxxxxxxxxx> http://yugiohjcj.1s.fr/