Subject: pkgtools/bootstrap-mk-files/files/mods/bsd.own.mk.in
To: None <tech-pkg@NetBSD.org>
From: Gilles Dauphin <Gilles.Dauphin@enst.fr>
List: tech-pkg
Date: 07/21/2006 10:33:15
Hello,

let me know why thoses lines in bsd.own.mk.in:

.if ${MACHINE_ARCH} == "x86_64"
CFLAGS+=-Wno-format -fno-builtin
.endif

that's is a problem when compiling some packages (gmake) whith solaris
gcc compiler.

the 'alloca' func is very system/compiler dependent , in Solaris
alloca is not a libc func. The gmake package does not link with this options.
and works fine whithout.

By the past I silently patch bsd.own.mk.in (no PR), but now it's time.

Thanks for an answer.
Maybe a patch like :

.if ${MACHINE_ARCH} == "x86_64" && ${OPSYS} != "SunOS"

will works

Gilles