aboutsummaryrefslogtreecommitdiff
path: root/scripts/grub.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/grub.sh')
-rw-r--r--scripts/grub.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/grub.sh b/scripts/grub.sh
index 8c37155..37c8e3c 100644
--- a/scripts/grub.sh
+++ b/scripts/grub.sh
@@ -7,9 +7,14 @@ if ! [ -d "${build_dir}/grub-$VERSION" ] ; then
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 -j8
+make -j$(nproc)
make install