Subject: How do I get -msoft-float added to my compiler flags in pkgbuilds?
To: None <port-mac68k@netbsd.org>
From: Bruce ONeel <edoneel@sdf.lonestar.org>
List: port-mac68k
Date: 09/11/2003 13:46:15
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