[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using libtool via autotools causes linking problem on mingw
From: |
Peter Rosin |
Subject: |
Re: Using libtool via autotools causes linking problem on mingw |
Date: |
Fri, 08 Nov 2013 01:37:24 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 |
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