Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Thread Tools Display Modes
Old 23rd October 2008
mdh's Avatar
mdh mdh is offline
Real Name: Matt D. Harris
FreeBSD 2.2.6 User
Join Date: Oct 2008
Location: West Virginia
Posts: 139

Originally Posted by TerryP View Post
In my opinion, that rules out most people who lack commit access to the FreeBSD src ;-)
Not really; the caveats are actually pretty well documented. If you can read enough documentation to successfully configure, say, an Apache server, then you can read enough documentation to setup your CFLAGS without breaking your system. Once you start reading, and having a good working knowledge of GCC's optimizations, you realize that there's not much benefit to modifying the defaults though, unless you've got specific tricks up your sleeve. Most of the time, i386 and amd64 users aren't going to get any benefit out of using non-default CFLAGS without risking breaking things. On other architectures, there are some optimizations that may help.

All that said, don't be afraid to actually read the documentation and become smarter for it regardless. If you want to use your compiler to its fullest, learn how. GCC has a pretty good man page. Caveats of different optimizations on the world+kernel tree are documented, many of the big caveats are documented right in /usr/share/examples/etc/make.conf.

Don't rely on fear to help you configure your system, instead, educate yourself and determine your benefits in any given situation. That's the UNIX way. The notion of "don't touch it, you might break something, and you're too stupid to understand why" is a very Microsoftian attitude.
Reply With Quote
Old 23rd October 2008
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366

OH, we all agree that some cflags optimizations are useful for some ports. In most cases, those optimizations have been coded into the port with it's 'OPTIMIZED_CFLAGS' options.

Playing with cflags for the system, though, is the best way to break things known to man.
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 10:29 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick