cc (make.conf and make args precedence) question
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 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cc (make.conf and make args precedence) question
On Sat, 15 Nov 2003 14:36:40 +0200, Ion-Mihai Tetcu [EMAIL PROTECTED] wrote: Now what flag have precedence, -O2 or -O3 ? From the gcc man page (and yes, cc is really just gcc): If you use multiple -O options, with or without level numbers, the last such option is the one that is effective. In other words, -O3 in this case because it is the last one. -- Robin Schoonover (aka End) # Calvin and Hobbes (Bill Watterson)The surest sign that # intelligent life exists elsewhere in the universe is that it has # never tried to contact us. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cc (make.conf and make args precedence) question
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 [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]