From owner-freebsd-hackers Mon Feb 19 20:51:59 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from lafontaine.cybercable.fr (lafontaine.cybercable.fr [212.198.0.202]) by hub.freebsd.org (Postfix) with SMTP id D130D37B401 for ; Mon, 19 Feb 2001 20:51:56 -0800 (PST) Received: (qmail 47500507 invoked from network); 20 Feb 2001 04:51:54 -0000 Received: from d165.dhcp212-231.cybercable.fr (HELO gits.dyndns.org) ([212.198.231.165]) (envelope-sender ) by lafontaine.cybercable.fr (qmail-ldap-1.03) with SMTP for ; 20 Feb 2001 04:51:54 -0000 Received: (from root@localhost) by gits.dyndns.org (8.11.1/8.11.1) id f1K4ppK20364; Tue, 20 Feb 2001 05:51:51 +0100 (CET) (envelope-from clefevre@poboxes.com) To: "Julian Stacey" Cc: hackers@FreeBSD.ORG Subject: Re: COPTFLAGS without -O in /etc/make.conf breaks kernel make References: <200102192217.f1JMH9C16878@jhs.muc.de> X-Face: V|+c;4!|B?E%BE^{E6);aI.[<97Zd*>^#%Y5Cxv;%Y[PT-LW3;A:fRrJ8+^k"e7@+30g0YD0*^^3jgyShN7o?a]C la*Zv'5NA,=963bM%J^o]C In-Reply-To: "Julian Stacey"'s message of "Mon, 19 Feb 2001 22:17:09 GMT" From: Cyrille Lefevre Reply-To: clefevre@poboxes.com Mail-Copies-To: never Date: 20 Feb 2001 05:51:48 +0100 Message-ID: Lines: 26 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Julian Stacey" writes: > Here's a weirdness in 4.2-RELEASE kernel generation: > - Compiling a GENERIC kernel _Without -O optimiser causes a broken make ! > - Compiling a GENERIC kernel _With_ -O optimiser compiles OK. this question is cyclic. and yes, the kernel *have* to be compiled w/ -O turned on. sorry, I don't remember why. if you want yo put something to COPTFLAGS, try something like this : # the only way I've found to see if I'm in the kernel tree or no ! IS_SYS?= ${.CURDIR:M*/sys*} # make sure COPTFLAGS contains -O for kernel builds. .if !empty(IS_SYS) COPTFLAGS= -O .endif # add your stuffs... COPTFLAGS+= -fomit-frame-pointer -fno-builtin Cyrille. -- home: mailto:clefevre@poboxes.com UNIX is user-friendly; it's just particular work: mailto:Cyrille.Lefevre@edf.fr about who it chooses to be friends with. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message