Subject: Re: kern/21311: Generic kernel doesnt compile in 1.6.1_STABLE
To: Mipam <email@example.com>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
Date: 04/25/2003 00:32:22
On Thu, Apr 24, 2003 at 11:59:08PM +0200, Mipam wrote:
> I used for the pkgsrc CFLAGS+= -pipe and for the kernel and userland
> COPTS+= -pipe so that the normal options arent changed but just -pipe
> is added, at least thats what i think. So ... it means that in the
> default compilation -O2 is omitted as well? Weird though .... Or does
> this mean someting goes wrong with += and the options are replaced
> instead of -pipe is been added?
if you look into /usr/share/mk/sys.mk, you will see that CFLAGS is set
to DBG (which is set to "-O2" on i386) only if not previously defined.
since you set it to "-pipe" already the "-O2" is never appended. you
need to set CFLAGS to "-pipe -O2" in mk.conf.
-- Lubomir Sedlacik <salo@Xtrmntr.org> --
-- <firstname.lastname@example.org> --