From owner-freebsd-stable Mon May 7 15:48:22 2001 Delivered-To: freebsd-stable@freebsd.org Received: from bluenugget.net (babyviolence.com [64.3.150.188]) by hub.freebsd.org (Postfix) with ESMTP id 0E5BE37B422 for ; Mon, 7 May 2001 15:48:18 -0700 (PDT) (envelope-from geniusj@bluenugget.net) Received: from bluenugget.net (localhost.com [127.0.0.1]) by bluenugget.net (Postfix) with ESMTP id 2611E13634; Mon, 7 May 2001 15:49:25 -0700 (PDT) Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: binary To: nuno.mailinglists@pt-quorum.com From: Jason DiCioccio Cc: freebsd-stable@FreeBSD.ORG X-Originating-Ip: 63.93.9.98 MIME-Version: 1.0 Reply-To: Jason DiCioccio Date: Mon, 07 May 2001 14:49:22 PST X-Mailer: EMUmail 4.5 Subject: Re: CFLAGS Optimization X-Webmail-User: geniusj@bluenugget.net Message-Id: <20010507224925.2611E13634@bluenugget.net> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 7 May 2001 23:36:31 +0100 (WEST) Nuno Teixeira wrote: > Hello to all, > > I came from Linux Welcome! > and at that time I used CFLAGS to optimize general > programs and linux kernel. > > For example: > > [i686]: > CFLAGS='-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro > - -march=pentiumpro -fomit-frame-pointer -fno-exceptions' Geeze... No comment. [...] > > Can I use CFLAGS on FreeBSD too? If I put the CFLAGS on > /etc/defaults/make.conf, the kernel is affected by it? > Does CFLAGS can optimize programs and kernel on FreeBSD OS? > Yes, dont modify /etc/defaults/*, put changed lines into /etc/make.conf. /etc/defaults is there for reference and is not supposed to be modified (it is there to make upgrades easier). COPTFLAGS should actually be used for kernel, CFLAGS for ports and userland. Cheers, -JD- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message