This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: A target_os conditionally applied -lfoo switch
- From: Bruce Korb <bkorb at pacbell dot net>
- To: Ralf Corsepius <corsepiu at faw dot uni-ulm dot de>
- Cc: Automake List <automake at gnu dot org>
- Date: Thu, 14 Nov 2002 07:27:57 -0800
- Subject: Re: A target_os conditionally applied -lfoo switch
- Organization: Home
- References: <3DD29524.3010000@yahoo.com> <1037212543.12886.6718.camel@mccallum>
Ralf Corsepius wrote:
>
> Am Mit, 2002-11-13 um 19.08 schrieb Earnie Boyd:
> > I need to add a library specific to a target_os. I've tried several
> > possible techniques and can't get cooperation from the tools.
> >
> > What I want is something similar to:
> >
> > target_os := @target_os@
> >
> > ifeq ($(target_os),mingw32)
> > LDADD += -lws2_32
> > endif
Add an AC_SUBST value to your configure script.
Fill it with "-lws2_32" for mingw32, otherwise empty.
Add that value (``$(WHATEVER)'') to your mumble_LDADD
unconditionally.