Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Nov 2003 14:36:40 +0200
From:      Ion-Mihai Tetcu <itetcu@apropo.ro>
To:        questions@freebsd.org
Subject:   cc (make.conf and make args precedence) question
Message-ID:  <5.1.0.14.0.20031115142832.016c6768@mail.apropo.ro>

next in thread | raw e-mail | index | archive | help
Hi,


buh# grep 'CFLAGS' /etc/make.conf
CFLAGS= -O2 -pipe

and

/usr/ports/mysql40-server# make -DBUILD_OPTIMIZED

(
buh# grep -A1 '(BUILD_OPTIMIZED' /usr/ports/databases/mysql40-server/Makefile
.if defined(BUILD_OPTIMIZED)
CFLAGS+=        -O3 -fno-omit-frame-pointer

)

result:

....
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 ?


IOnut



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