Subject: Re: lib and prog specific flags.
To: Eric Haszlakiewicz <erh@nimenees.com>
From: Luke Mewburn <lukem@NetBSD.org>
List: tech-userlevel
Date: 09/10/2003 03:54:44
On Sun, Sep 07, 2003 at 04:34:24PM -0500, Eric Haszlakiewicz wrote:
  | 
  | 	I recently ran into the need to set custom CPPFLAGS and LDADD for
  | only one particular program.  (sendmail, to compile sasl support).  It
  | seemed less than ideal to have to go and edit the makefile so I added
  | support to the mk files to allow you to do this in mk.conf.  The patch
  | is attached.  Does this look reasonable?  Are there any other variables
  | that should be handled like this?

At first glance, this looks like a reasonable feature to add.

You can cheat and just do:
	COPTS+=		${COPTS.lib${LIB}}
	CPPFLAGS+=	${CPPFLAGS.lib${LIB}}
	CXXFLAGS+=	${CXXFLAGS.lib${LIB}}
	LDADD+=		${LDADD.lib${LIB}}


Luke.