[Solved] CFLAGS="What the heck?"

New features which should be implemented in Porteus; suggestions are welcome. All questions or problems with testing releases (alpha, beta, or rc) should go in their relevant thread here, rather than the Bug Reports section.
User avatar
82issa
DOC Team
DOC Team
Posts: 127
Joined: 13 Apr 2011, 17:24
Location: USA, NC

[Solved] CFLAGS="What the heck?"

Post#1 by 82issa » 14 Apr 2011, 20:59

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]
Last edited by 82issa on 14 Apr 2011, 22:47, edited 1 time in total.
Sorry guys... I got to go. My girlfriend just casted "get your dirty ass into the shower" on me.
Oh and here is some naked grandpa pictures too.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: CFLAGS="What the heck?"

Post#2 by fanthom » 14 Apr 2011, 22:24

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
Please add [Solved] to your thread title if the solution was found.

User avatar
82issa
DOC Team
DOC Team
Posts: 127
Joined: 13 Apr 2011, 17:24
Location: USA, NC

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

Post#3 by 82issa » 14 Apr 2011, 22:49

Excellent thanks so much fanthom
Sorry guys... I got to go. My girlfriend just casted "get your dirty ass into the shower" on me.
Oh and here is some naked grandpa pictures too.

Post Reply