[Top][All Lists]

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

Re: a question about AC_CHECK_LIB

From: Stepan Kasal
Subject: Re: a question about AC_CHECK_LIB
Date: Tue, 17 Jan 2006 11:08:10 +0100
User-agent: Mutt/1.4.1i


On Mon, Jan 16, 2006 at 05:04:03PM +0800, brian.lu wrote:
> LIBS="${LIBS} -L${with_pwlib_dir}/${libname}/"
> AC_CHECK_LIB(pt, main, pwlib_libs="yes", pwlib_libs="no")

`-L' doesn't belong to LIBS, the correct command is

LDFLAGS="$LDFLAGS -L${with_pwlib_dir}/${libname}/"

LIBS should contain only -l flags, ordered from the most specific to
the most general (for the sake of static linking).  So you usually do:

LIBS="-lfoo $LIBS"

Hope this helps,
        Stepan Kasal

reply via email to

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