cc (make.conf and make args precedence) question
Dan Nelson
dnelson at allantgroup.com
Fri Nov 14 07:13:20 PST 2003
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 at allantgroup.com
More information about the freebsd-questions
mailing list