src_compile
Function | src_compile |
---|---|
Purpose | Build the package. |
Sandbox | Enabled |
Privilege | user |
Called for | ebuild |
Default src_compile
-
src_compile() { if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then emake || die "emake failed" fi }
Sample src_compile
-
src_compile() { use sparc && filter-flags -fomit-frame-pointer append-ldflags -Wl,-z,now emake }
Note: You also need to inherit the flag-o-matic eclass in order to use theappend-ldflags
function.
src_compile
Processes
The following subsections cover different topics which often occur when writing
src_compile
functions.