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 theflag-o-matic.eclassin order to use theappend-ldflagsfunction.