Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Nov 2003 09:13:14 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Ion-Mihai Tetcu <itetcu@apropo.ro>
Cc:        questions@freebsd.org
Subject:   Re: cc (make.conf and make args precedence) question
Message-ID:  <20031114151314.GG24018@dan.emsphone.com>
In-Reply-To: <5.1.0.14.0.20031115142832.016c6768@mail.apropo.ro>
References:  <5.1.0.14.0.20031115142832.016c6768@mail.apropo.ro>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031114151314.GG24018>