On 2013-11-07 23:39, Panicz Maciej Godek wrote: > Hi, > I did apply that change, i.e. replaced AM_LDFLAGS with slayer_LDADD and moved > the definition to the end of the src/Makefile.am. The libtool is right now > invoked this way: > /bin/sh ../libtool --tag=CXX --mode=link g++ -D_GNU_SOURCE=1 > -Dmain=SDL_main -Ic:/mingw/msys/1.0/include/SDL > -Ic:/mingw/msys/1.0/include/guile/2.0 -I/usr/local/include > -Ic:/mingw/msys/1.0/include -Wall -Werror -g -O2 -o slayer.exe file.o > font.o image.o input.o slayer.o symbols.o video.o -mwindows > -Lc:/mingw/msys/1.0/lib -lmingw32 -lSDLmain -lSDL -Lc:/mingw/msys/1.0/lib > -lguile-2.0 -lgc -mwindows -Lc:/mingw/msys/1.0/lib -lSDL_image -lmingw32 > -lSDLmain -lSDL -lSDL_ttf > > (plainly the libraries are given after the .o files) but I still get the same > error message.
Ok, I'm at a loss then. But I bet it's some kind of argument ordering issue... Maybe you could try moving -mwindows last or something? How to make that happen sanely with pkg-config is another matter. Sigh. Cheers, Peter _______________________________________________ https://lists.gnu.org/mailman/listinfo/libtool