Current-Users archive

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

Re: lib/librump fails to build with todays sources



On Fri, Nov 07, 2008 at 01:22:35PM +0000, Roy Marples wrote:
> >Please don't change "CFLAGS" because it can cause various
> >build failures.
> 
> How do I then set flags for packages?

Hmmm, it seems that this is the correct way for "pkgsrc", which is
probably wrong to start with.

I woud recomment to do it like this:

.ifdef BSD_PKG_MK
CFLAGS+=        -march=...
.elif ${MACHINE_ARCH} == i386
CPUFLAGS+=      -march=...
.endif

This will avoid problems with "src" in general and with cross-building
in particular.

        Kind regards

-- 
Matthias Scheler                                  http://zhadum.org.uk/


Home | Main Index | Thread Index | Old Index