[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] SDL_gfx .mk file

From: Volker Grabsch
Subject: Re: [Mingw-cross-env-list] SDL_gfx .mk file
Date: Mon, 22 Aug 2011 16:23:55 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Stefan Pietzonke schrieb:
> I just used this configure line:
> ./configure --host=i686-pc-mingw32 CFLAGS="-ffast-math
> -fomit-frame-pointer -O3 -s -D_WIN32" LIBS="$LIBS -L../lib
> -lwsock32"
> What is wrong with this?
> Maybe some automake stuff isn't right?

My hint was not about the ./configure arguments, but
about the configure.ac file from which the ./configure
script is generated.

You said this is "your" project, so I assumed you were
able and willing to improve the configure.ac. In the best
case, you just replace all calls to AC_CHECK_LIB() with
a single call to PKG_CHECK_MODULES():

    PKG_CHECK_MODULES([DEPS], [SDL_gfx ...])

If this is not your project, however, you probably don't
want to touch configure.ac etc. In that case, there is no
clean solution, but the following kind of workaround will
usually do the trick:

    ./configure ... LIBS="`i686-pc-mingw32-pkg-confg --libs SDL_gfx`"


Volker Grabsch

reply via email to

[Prev in Thread] Current Thread [Next in Thread]