From owner-freebsd-questions@FreeBSD.ORG Sat Jan 24 17:44:05 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 224FD106564A for ; Sat, 24 Jan 2009 17:44:05 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by mx1.freebsd.org (Postfix) with ESMTP id 9FE008FC14 for ; Sat, 24 Jan 2009 17:44:04 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: by nf-out-0910.google.com with SMTP id h3so846749nfh.33 for ; Sat, 24 Jan 2009 09:44:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=SZz8/wxoFPEAm6NuOQUyNXu8vEprVDkqkrLpgUbqR0s=; b=d/DEGOeIvJbc8ljXXGmzImzzO5STQcPYHBtlTiJeggT6eST1gSt44a4cQz/jh/iPVD md6aDtC22ZeP/iqk8ohmUsidgI5NOjNF9h9YUxVI1UxzxdHPYl15jmRpPWvWNUZ+77hA NOdXqTsWX45kSbQY3G8/h1s/NVSXfWkp8P4d0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=ZlDOEN5sHtORKGEKkfW/K6IIZqH7UZHCav+LgjjPLO3s9sB1wNWdPcQcTy/igfnLtR /JrpBUqJ9DiiLms2BPcvKX2LAJxyjPGt6wiYb0xGbsPi4wKVk8GT6XZKnLMlw7qeK1zG uDzasdqyzMZvQq8mEW86Ll6mQxSD0N7UurFeY= Received: by 10.210.109.10 with SMTP id h10mr669747ebc.110.1232819043118; Sat, 24 Jan 2009 09:44:03 -0800 (PST) Received: from gumby.homeunix.com (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mx.google.com with ESMTPS id y37sm20308674iky.2.2009.01.24.09.43.59 (version=SSLv3 cipher=RC4-MD5); Sat, 24 Jan 2009 09:44:00 -0800 (PST) Date: Sat, 24 Jan 2009 17:43:57 +0000 From: RW To: freebsd-questions@freebsd.org Message-ID: <20090124174357.4aafcf1a@gumby.homeunix.com> In-Reply-To: <497B2536.7030907@pp.dyndns.biz> References: <20090124124535.3006687c@gumby.homeunix.com> <9a52b1190901240451i14dc544fm1c241d6f43fa897b@mail.gmail.com> <20090124131629.1f9fabe4@gumby.homeunix.com> <497B2536.7030907@pp.dyndns.biz> X-Mailer: Claws Mail 3.7.0 (GTK+ 2.14.7; i386-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: default CFLAGS X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jan 2009 17:44:05 -0000 On Sat, 24 Jan 2009 15:27:02 +0100 Morgan Wesstr=F6m wrote: > The section "options enabled" will list them all. I usually only add > "-march=3Dnative" to my CFLAGS to enable a few more CPU specific > optimizations. If you set CPUTYPE, -march is set to match, so setting -march=3Dnative should be redundant. OTOH a number of other make variables are defined from CPUTYPE, so if you set -march=3Dnative, but not CPUTYPE you might miss some optimisations based on build options.=20 I've no idea whether there are any such options, just that you're probably not going to do better than setting CPUTYPE, and leaving the rest alone.