Subject: Re: How do I get -msoft-float added to my compiler flags in pkgbuilds?
To: Bruce ONeel <edoneel@sdf.lonestar.org>
From: David Brownlee <abs@netbsd.org>
List: port-mac68k
Date: 09/11/2003 12:51:34
	You probably want to take a look at devel/cpuflags - it should
	do the right thing for most packages (details in cpuflags.mk).
	It will also set -m68040 :)

On Thu, 11 Sep 2003, Bruce ONeel wrote:

> Hi,
>
> Now that 1.6.1 seems to work correctly for lc040s, John Klos and I
> would like to do a bulk package build.
>
> The problem:
>
> cc won't generate the correct code
> cc -msoft-float will.
>
> As a test I'm in lang/perl5
>
> I type make
>
> I end up seeing cc lines without -msoft-float.
>
> I've tried
>
> setenv CC "cc -msoft-float"
> nothing seemed to change
>
> make CC="cc -msoft-float"
> nothing seemed to change
>
> Adding the line
>
> CC="cc -msoft-float"
>
> to /etc/mk.conf
>
> caused the buildlinking step to crash with an unterminated string.
>
> Adding
>
> CFLAGS+="-msoft-float"
>
> to /etc/mk.conf  seems to have had no affect.
>
> So I'm lost.  Ideas?  I was trying to avoid the
> "write a small wrapper" fix.
>
> Thanks!
>
> cheers
>
> bruce
>

-- 
		David/absolute          -- www.netbsd.org: No hype required --