Gentoo/Portage

From Sidvind
Jump to: navigation, search

Contents

[edit] Per-package settings

[edit] Enviroment flags only (CFLAGS, LINGUAS, etc)

Code: /etc/portage/package.env
  1. x11-libs/qt-webkit nodebug.conf
Code: /etc/portage/env/nodebug.conf
  1. CFLAGS="-march=native -Os -pipe -msse3"
  2. CXXFLAGS="${CFLAGS}"

Uses the same format as make.conf(5)

[edit] Alternative

Create bashrc in /etc/portage/env/${CATEGORY}/${PN} with the custom environment.

[edit] Environmental variables

[edit] EXTRA_ECONF / EXTRA_EMAKE

Pass extra flags to econf (configure) and emake (make):

 EXTRA_ECONF="--disable-silent-rules" emerge -v1 foobar
Personal tools
Programming
Google AdSense