Subject: Re: help with linking within a new package
To: NetBSD Package Maintainers List <tech-pkg@netbsd.org>
From: Julian C. Dunn <lists@aquezada.com>
List: tech-pkg
Date: 08/24/2003 11:40:44
On Sun, 2003-08-24 at 08:13, Todd Vierling wrote:
> On Sun, 24 Aug 2003, Julian C. Dunn wrote:
> 
> : I'm trying to create a new package for amavisd-new, the improved e-mail
> : virus and spam scanner. I'm having some difficulty handling the building
> : of the milter binaries (amavis and amavis-milter) due to some linking
> : issues.
> :
> : First of all, I had to copy the hackery from the amavis-perl package
> : which looks like the following:
> 
> Try adding the following within a USE_MILTER test, just before ".include
> .../bsd.pkg.mk".  This should eliminate the hackery need.
> 
> .include "../../mail/libmilter/buildlink2.mk"
> .include "../../mk/pthread.buildlink2.mk"

Awesome, thank you! Subsequently I had to patch Makefile.in to respect
$(LDFLAGS) but otherwise it works great.

- Julian

-- 
[    Julian C. Dunn <jdunn@aquezada.com> * <julian@dreaming.org>    ]
[   WWW: http://www.aquezada.com/staff/julian/  * PGP: 0xFDC205B9   ]
[      "sometimes you win, sometimes you lose / and most times      ]
[     you choose between the two" - carole king, "sweet seasons"    ]