[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to use AC_CHECK_LIB without LDFLAGS?
From: |
Ralf Wildenhues |
Subject: |
Re: how to use AC_CHECK_LIB without LDFLAGS? |
Date: |
Fri, 5 Nov 2004 10:57:00 +0100 |
User-agent: |
Mutt/1.4.1i |
* Harald Dunkel wrote on Thu, Nov 04, 2004 at 09:48:49PM CET:
>
> My question is: How can I use AC_CHECK_LIB without setting
> a global LDFLAGS?
Why do you have to do that in the first place?
> Using automake I can specify linker flags per program, e.g.
>
> foo_LDFLAGS = -L/somepath/mylibs1
> bar_LDFLAGS = -L/someotherpath/mylibs2
>
> But since AC_CHECK_LIB does not allow me to specify linker
> flags for the test program except by setting LDFLAGS (AFAIK),
> a broken search path for either foo or bar sneaks into my
> generated Makefile :-(.
Why is the generated path broken for your use if you just do a
configure LDFLAGS='-L/somepath/mylibs1 -L/someotherpath/mylibs2'
? What's broken by it?
Regards,
Ralf
Re: how to use AC_CHECK_LIB without LDFLAGS?,
Ralf Wildenhues <=