Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Need help to setup my CFLAGS/CXXFLAGS
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
gekko247
Tux's lil' helper
Tux's lil' helper


Joined: 02 Oct 2004
Posts: 139
Location: Lancashire, UK

PostPosted: Thu Sep 01, 2016 4:26 pm    Post subject: [solved] Need help to setup my CFLAGS/CXXFLAGS Reply with quote

Hi Guys,

I sure could do with some help, Please! I need guidance on setting up CFLAGS and CXXFLAGS. I couldn't find my cpu on the wiki

https://wiki.gentoo.org/wiki/Safe_CFLAGS#AMD.

I uploaded the output of

Code:
/proc/cpuinfo
to my website.

http://burnleylinux.bplaced.net/cpuinfo

many thanks

Frank
_________________
Lappi: Compaq 15-h050ng Notebook - Gentoo / FreeBSD


Last edited by gekko247 on Fri Sep 02, 2016 3:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21780
Location: here

PostPosted: Thu Sep 01, 2016 5:23 pm    Post subject: Reply with quote

Read this thread
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
gekko247
Tux's lil' helper
Tux's lil' helper


Joined: 02 Oct 2004
Posts: 139
Location: Lancashire, UK

PostPosted: Fri Sep 02, 2016 4:52 am    Post subject: Reply with quote

fedeliallalinea wrote:
Read this thread


fabulous...

thanks
_________________
Lappi: Compaq 15-h050ng Notebook - Gentoo / FreeBSD
Back to top
View user's profile Send private message
C5ace
Apprentice
Apprentice


Joined: 23 Dec 2013
Posts: 278
Location: Brisbane, Australia

PostPosted: Fri Sep 02, 2016 9:54 am    Post subject: Reply with quote

My initial make.conf on quad core AMD laptop:
Code:

CFLAGS="-O2 -mtune=native -pipe -march=native"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5"
FEATURES="-preserve-libs"
CHOST="x86_64-pc-linux-gnu"
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
LINGUAS="en"
INPUT_DEVISES="evdev"
VIDEO_CARDS="radeon"
SANE_BACKENDS="hp"
USE="-kde -gnome -qt -ipv6 -bluetooth -systemd gtk samba"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
XFCE_PLUGINS="brightness clock trash"
GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo"


Then add CPU_FLAGS_X86="aes .......... by running
Code:

cpuinfo2cpuflags-x86 >> /etc/portage/make.conf


The final make.conf will be:
Quote:

CFLAGS="-O2 -mtune=native -pipe -march=native"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5"
FEATURES="-preserve-libs"
CHOST="x86_64-pc-linux-gnu"
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
LINGUAS="en"
INPUT_DEVISES="evdev"
VIDEO_CARDS="radeon"
SANE_BACKENDS="hp"
USE="-kde -gnome -qt -ipv6 -bluetooth -systemd gtk samba"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
XFCE_PLUGINS="brightness clock trash"
GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo"

CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3"


Then continue with your installation as per Handbook.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum