|
Lines 34-40
src_prepare() {
Link Here
|
| 34 |
|
34 |
|
| 35 |
src_compile() { |
35 |
src_compile() { |
| 36 |
unset ARCH |
36 |
unset ARCH |
| 37 |
emake CC="$(tc-getCC)" LD="$(tc-getLD)" V=1 SETPROCTITLE=$(usex setproctitle) WERROR=0 all docs |
37 |
|
|
|
38 |
# On native builds, $ARCH is inferred from $(uname -m) |
| 39 |
if tc-is-cross-compiler; then |
| 40 |
if use x86; then |
| 41 |
export ARCH=i386 |
| 42 |
elif use amd64; then |
| 43 |
export ARCH=x86_64 |
| 44 |
elif use arm; then |
| 45 |
export ARCH=arm |
| 46 |
elif use arm64; then |
| 47 |
export ARCH=aarch64 |
| 48 |
else |
| 49 |
die -q "Unsupported architecture" |
| 50 |
fi |
| 51 |
fi |
| 52 |
|
| 53 |
tc-export OBJCOPY |
| 54 |
emake CC="$(tc-getCC)" LD="$(tc-getLD).bfd" OBJCOPY="${OBJCOPY}" V=1 SETPROCTITLE=$(usex setproctitle) WERROR=0 all docs |
| 38 |
} |
55 |
} |
| 39 |
|
56 |
|
| 40 |
src_test() { |
57 |
src_test() { |
| 41 |
- |
|
|