Lines 11-17
Link Here
|
11 |
LICENSE="BSD" |
11 |
LICENSE="BSD" |
12 |
SLOT="0" |
12 |
SLOT="0" |
13 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
13 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
14 |
IUSE="static" |
14 |
IUSE="static diet" |
15 |
|
15 |
|
16 |
DEPEND="" |
16 |
DEPEND="" |
17 |
|
17 |
|
Lines 24-32
Link Here
|
24 |
# we either build everything or nothing static |
24 |
# we either build everything or nothing static |
25 |
sed -i -e 's:-static: :' src/Makefile |
25 |
sed -i -e 's:-static: :' src/Makefile |
26 |
use static && append-ldflags -static |
26 |
use static && append-ldflags -static |
27 |
|
27 |
if use diet; then |
28 |
echo "$(tc-getCC) ${CFLAGS}" > src/conf-cc |
28 |
echo "diet -Os $(tc-getCC) ${CFLAGS}" > src/conf-cc |
29 |
echo "$(tc-getCC) ${LDFLAGS}" > src/conf-ld |
29 |
echo "diet -Os $(tc-getCC) ${LDFLAGS}" > src/conf-ld |
|
|
30 |
else |
31 |
echo "$(tc-getCC) ${CFLAGS}" > src/conf-cc |
32 |
echo "$(tc-getCC) ${LDFLAGS}" > src/conf-ld |
33 |
fi |
30 |
} |
34 |
} |
31 |
|
35 |
|
32 |
src_compile() { |
36 |
src_compile() { |