blob: 37c8e3ca3f8815e37b33ac62daa431443a0181e1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
. ./.vars
VERSION=2.02
cd $build_dir
if ! [ -d "${build_dir}/grub-$VERSION" ] ; then
xz -dc < "${dist_dir}/grub-$VERSION.tar.xz" | tar -xvf -
fi
cd "grub-$VERSION"
export DESTDIR="$prefix"
export LDFLAGS="-static"
export CFLAGS="-static"
export CPPFLAGS="$CFLAGS"
./configure \
--prefix='/usr' \
--sysconfdir='/etc' \
--host=$BUILD_TGT \
--disable-werror # Why in the fuck do I have to add disable -Werror?
# Is GRUB really *that* shit?
make -j$(nproc)
make install
|