tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: GNU builds with separate source and object trees



On Sat, Sep 20, 2008 at 03:56:10PM +1200, Lloyd Parkes wrote:
> Some GNU software (such as GCC) is designed to build with an object tree 
> outside the source tree.
>
> Is there any support for this in pkgsrc? At the moment I am using Makefile 
> fragments like
>       CONFIGURE_DIRS=         ../build
>       CONFIGURE_SCRIPT=       ../${DISTNAME}/configure
>
> but it would be nicer if I could just set a single variable to get all of 
> the requisite build phases run in the right directory.

I think you don't need to set anything but WRKSRC=${WRKDIR}/build and
CONFIGURE_SCRIPT.

Just remember that the paths in patches are relative to ${WRKSRC}.

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index