Page 1 of 1

[Solved] CFLAGS="What the heck?"

Posted: 14 Apr 2011, 20:59
by 82issa
We have the cflags listed for our 32bit processors in

http://porteus.org/component/content/ar ... ource.html

Code: Select all

[b]CFLAGS="-O3 -march=i486 -mtune=i686"[/b]
I haven't found anything that states some sort of standard for the x86_64 architecture. I know what I would like to put in there but if i want my executables to be the most portable across various x86_64 style cpu's. What options should we use.

great resource: I can draw up plenty of conclusions from here. But thought I might get some input from others.

http://en.gentoo-wiki.com/wiki/Safe_Cflags/Intel
http://en.gentoo-wiki.com/wiki/Safe_Cflags/AMD

Maybe:

Code: Select all

[b]CFLAGS="-O3 -march=k8 -mtune=generic"[/b]

Re: CFLAGS="What the heck?"

Posted: 14 Apr 2011, 22:24
by fanthom
i would follow Slackware standards which doesn't set '-march' and '-mtune' for 64bits at all, the only flags which you can find in official Slackbuilds are: -O2 -fPIC (i would also add -pipe)
Example:
http://ftp.heanet.ie/mirrors/ftp.slackw ... SlackBuild

Re: [Solved] CFLAGS="What the heck?"

Posted: 14 Apr 2011, 22:49
by 82issa
Excellent thanks so much fanthom