summaryrefslogtreecommitdiffstats
path: root/disk/grub2/PRE_BUILD
blob: ceb321f63eb42c065974cdd33baa773bb136af8e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
default_pre_build &&

message "${MESSAGE_COLOR}Fix compilation with glibc 2.16+${DEFAULT_COLOR}" &&
patch "${SOURCE_DIRECTORY}"/grub-core/gnulib/stdio.in.h \
      "${SPELL_DIRECTORY}"/glibc-2.16.patch &&

cd ${SOURCE_DIRECTORY} &&
if [[ "${GRUB2_SVN}" = 'y' ]]; then
  ./autogen.sh
else
  rm -rf autom4te.cache
fi