Subject: Re: CFLAGS in devel/bmake
To: None <tech-pkg@NetBSD.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: tech-pkg
Date: 05/23/2007 02:00:55
On Tue, May 22, 2007 at 06:40:26PM -0500, Amitai Schlair wrote:
> Building a "Universal" (fat) binary on Mac OS X requires passing some 
> extra arguments to the compiler and linker. Apple recommends setting 
> them as CFLAGS and LDFLAGS, and this does the trick for software which 
> respects those variables.

I would actually *not* follow that recomendation and put it in CC/LD.

> The following diff makes devel/bmake respect CFLAGS passed in the 
> environment, which lets me build and run a Universal binary of bmake. Is 
> this OK to commit?

Can you just use += all the time? That should be enough.

Joerg