Hello,

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