Autotools

Alexander E. Patrakov patrakov at ums.usu.ru
Wed Dec 6 23:58:32 PST 2006


Luca wrote:
> Another bug, manifested in grub-0.97, after applying reiser4 patch:
> automake --add-missing
>
> docs/Makefile.am:3: compiling `kernel.c' with per-target flags requires
> `AM_PROG_CC_C_O' in `configure.ac'
> /usr/share/automake-1.10/am/depend2.am: am__fastdepCCAS does not appear
> in AM_CONDITIONAL
> /usr/share/automake-1.10/am/depend2.am:   The usual way to define
> `am__fastdepCCAS' is to add `AM_PROG_AS'
>   
patch -Np1 -i ../grub-0.97-reiser4-20050808.diff
# This will fail to add -fno-strict-aliasing to CFLAGS,
# but this flag is already present on the CD. So ignore the reject.
patch -Np1 -i ../grub-0.97-disk_geometry-1.patch || true
# Fixes the incompatibility with new autotools
sed -i 's/AM_INIT_AUTOMAKE/&\nAM_PROG_AS/' configure.ac

autoreconf --force --install --verbose
CFLAGS="-Os -s -pipe -fno-strict-aliasing" ./configure --prefix=/usr
make
make install

-- 
Alexander E. Patrakov



More information about the lfs-dev mailing list