Default src_configure
src_configure() {
if [[ -x ${ECONF_SOURCE:-.}/configure ]] ; then
econf
fi
}
Sample src_configure
inherit flag-o-matic
src_configure() {
use sparc && filter-flags -fomit-frame-pointer
append-ldflags -Wl,-z,now
econf \
$(use_enable ssl) \
$(use_enable perl perlinterp)
}
You also need to inherit the
flag-o-matic
eclass in order to use the append-ldflags function.
src_configure Processes
The following subsections cover different topics which often occur when writing
src_configure functions.