Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 641610 - make.conf.example update references to CHOST and -march= in CFLAGS/CXXFLAGS
Summary: make.conf.example update references to CHOST and -march= in CFLAGS/CXXFLAGS
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Documentation (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-18 21:01 UTC by Walter Dnes
Modified: 2017-12-19 14:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Walter Dnes 2017-12-18 21:01:38 UTC
1) Apparently CHOST is now set in the profile. But file /usr/share/portage/config/make.conf.example still mentions it. The reference to CHOST should be deleted.

2) The discussion about about setting "-march=" does not mention "-march=native", which all recent versions of gcc support. I suggest

* mention "-march=native" as a safe default, for building programs and libraries for use on your own machine.

* keep the current discussion about "-march=", to guide people building for a different Intel/AMD cpu (Semi cross-compiling)

* hint for determining cpu type; ON THE TARGET MACHINE* execute the command...
gcc -c -Q -march=native --help=target | grep march=

* update the gcc versions mentioned in the file. Currently 2.95 to 4.1 !!!

Reproducible: Always