Gentoo/Portage

From Sidvind
Jump to: navigation, search

Per-package settings[edit]

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

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)

Alternative[edit]

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

Environmental variables[edit]

EXTRA_ECONF / EXTRA_EMAKE[edit]

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

 EXTRA_ECONF="--disable-silent-rules" emerge -v1 foobar