Lines 12-20
Link Here
|
12 |
LICENSE="GPL-2" |
12 |
LICENSE="GPL-2" |
13 |
SLOT="0" |
13 |
SLOT="0" |
14 |
KEYWORDS="-* x86 amd64" |
14 |
KEYWORDS="-* x86 amd64" |
15 |
IUSE="static" |
15 |
IUSE="static netboot" |
16 |
|
16 |
|
17 |
DEPEND=">=sys-libs/ncurses-5.2-r5 |
17 |
RDEPEND=">=sys-libs/ncurses-5.2-r5" |
|
|
18 |
DEPEND="${RDEPEND} |
18 |
>=sys-devel/automake-1.7 |
19 |
>=sys-devel/automake-1.7 |
19 |
>=sys-devel/autoconf-2.5" |
20 |
>=sys-devel/autoconf-2.5" |
20 |
PROVIDE="virtual/bootloader" |
21 |
PROVIDE="virtual/bootloader" |
Lines 50-63
Link Here
|
50 |
[ `gcc-major-version` -eq 3 ] && append-flags -minline-all-stringops |
51 |
[ `gcc-major-version` -eq 3 ] && append-flags -minline-all-stringops |
51 |
use static && append-ldflags -static |
52 |
use static && append-ldflags -static |
52 |
|
53 |
|
53 |
has_pie && CC="${CC} `test_flag -fno-pic` `test_flag -nopie`" |
54 |
has_pie && CFLAGS="${CFLAGS} `test_flag -fno-pic` `test_flag -nopie`" |
54 |
has_ssp && CC="${CC} `test_flag -fno-stack-protector`" |
55 |
has_ssp && CFLAGS="${CFLAGS} `test_flag -fno-stack-protector`" |
55 |
|
56 |
|
56 |
autoconf || die |
57 |
autoconf || die |
57 |
aclocal || die |
58 |
aclocal || die |
58 |
WANT_AUTOMAKE=1.7 automake || die |
59 |
WANT_AUTOMAKE=1.7 automake || die |
59 |
|
60 |
|
60 |
# build the net-bootable grub first |
61 |
# build the net-bootable grub first |
|
|
62 |
if use netboot; then |
63 |
|
61 |
CFLAGS="" \ |
64 |
CFLAGS="" \ |
62 |
econf \ |
65 |
econf \ |
63 |
--libdir=/lib \ |
66 |
--libdir=/lib \ |
Lines 77-82
Link Here
|
77 |
|
80 |
|
78 |
make clean || die |
81 |
make clean || die |
79 |
|
82 |
|
|
|
83 |
fi |
84 |
|
80 |
# now build the regular grub |
85 |
# now build the regular grub |
81 |
CFLAGS="${CFLAGS}" \ |
86 |
CFLAGS="${CFLAGS}" \ |
82 |
econf \ |
87 |
econf \ |