From owner-freebsd-questions@FreeBSD.ORG Fri Nov 14 07:13:19 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E8FF516A4CE for ; Fri, 14 Nov 2003 07:13:19 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CDD643FBF for ; Fri, 14 Nov 2003 07:13:19 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id hAEFDEdV074988; Fri, 14 Nov 2003 09:13:14 -0600 (CST) (envelope-from dan) Date: Fri, 14 Nov 2003 09:13:14 -0600 From: Dan Nelson To: Ion-Mihai Tetcu Message-ID: <20031114151314.GG24018@dan.emsphone.com> References: <5.1.0.14.0.20031115142832.016c6768@mail.apropo.ro> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.1.0.14.0.20031115142832.016c6768@mail.apropo.ro> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.5.1i cc: questions@freebsd.org Subject: Re: cc (make.conf and make args precedence) question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Nov 2003 15:13:20 -0000 In the last episode (Nov 15), Ion-Mihai Tetcu said: > buh# grep 'CFLAGS' /etc/make.conf > CFLAGS= -O2 -pipe > > buh# grep -A1 '(BUILD_OPTIMIZED' > /usr/ports/databases/mysql40-server/Makefile > .if defined(BUILD_OPTIMIZED) > CFLAGS+= -O3 -fno-omit-frame-pointer > > .... > cc -c -I. -I../.././bdb/dist/../include -D_THREAD_SAFE -DDBUG_OFF -O2 > -pipe -march=k6-2 -O3 -fno-omit-frame-pointer -fno-gcse > ../.././bdb/dist/../btree/bt_reclaim.c > > Now what flag have precedence, -O2 or -O3 ? Later flags always override earlier ones, so -O3 wins. -- Dan Nelson dnelson@allantgroup.com