Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Nov 2003 02:47:34 +0100
From:      Oliver Eikemeier <eikemeier@fillmore-labs.com>
To:        Edwin Groothuis <edwin@mavetju.org>
Cc:        ports@freebsd.org
Subject:   Re: Handling port that requires GNU binutils (libiberty, libbfd).
Message-ID:  <3FB6D736.4020401@fillmore-labs.com>
In-Reply-To: <20031116012936.GN59397@k7.mavetju>
References:  <20031115123307.GA33995@lewiz.org> <20031116012936.GN59397@k7.mavetju>

next in thread | previous in thread | raw e-mail | index | archive | help
Edwin Groothuis wrote:

> On Sat, Nov 15, 2003 at 12:33:07PM +0000, Lewis Thompson wrote:
> 
>>I'm attempting to create a port for KMD (Komodo Manchester Debugger) but
>>it requires libiberty and libbfd, in addition to their include files.
>>These are all part of binutils and as such are available in
>>/usr/obj/usr/src/gnu/usr.bin/binutils.  However, they are not much use
>>to me there.
> 
> You could copy them into your work directory in the post-fetch phase
> of the fetch phase of the port.

Nope, WRKDIR gets deleted on do-extract, never assume WRKDIR or WRKSRC
exists before post-extract.

The complied objects do not have to exist, and if they do not necessarily
in /usr/obj/usr/src/gnu/usr.bin/binutils.

Also be careful with WRKDIR, bsd.port.mk uses it for its own purposes.
Use WRKSRC or a subdirectory of WRKDIR whenever possible.

Oliver



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3FB6D736.4020401>