This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
A target_os conditionally applied -lfoo switch
- From: Earnie Boyd <earnie_boyd at yahoo dot com>
- To: automake at gnu dot org
- Date: Wed, 13 Nov 2002 13:08:36 -0500
- Subject: A target_os conditionally applied -lfoo switch
- Reply-to: automake at gnu dot org
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
Unfortunately automake thinks the conditional belongs to it instead of make.
Help?
Earnie.