Paludis Logo Introduction Hooks general.conf bashrc
Bugs, Requests, Support Syncers keywords.conf / platforms.conf suggestions.conf
Overview Fetchers use.conf / options.conf sets/
FAQ Env Vars licenses.conf / licences.conf repositories/
Clients File Formats mirrors.conf  
Configuration Dep Specs output.conf  
API specpath.conf package_mask.conf  

bashrc

This document applies only to clients using PaludisEnvironment. Any standard client that supports a --environment command line option uses PaludisEnvironment unless overridden, either by explicitly selecting another environment (e.g. --environment portage) or, on distributions also supporting Portage, by lack of a Paludis configuration and presence of a Portage configuration.

The bashrc file is sourced by Paludis when executing most bash scripts (for example, ebuilds and syncers). It can be used to set build-related options (e.g. CFLAGS), but not any option which might affect dependency resolution (e.g. USE).

This file must not be used to output anything to standard output. Be aware that sandbox and / or reduced privileges may be in operation.

Example

# Set basic build options
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

# For Exherbo, use build_options:jobs rather than MAKEOPTS
MAKEOPTS="-j2"

# For some profiles, you must set CHOST
CHOST="i686-pc-linux-gnu"

# We have access to CATEGORY, PN etc, which we can use for per-package settings
if [[ "${CATEGORY}/${PN}" == "sys-apps/paludis" ]] ; then
    CXXFLAGS="${CXXFLAGS} -g -ggdb3"
fi