#!/bin/bash
-hvconfigure()
+hvconfig_pre()
{
- cd ${LFS_TMP}/${PACKAGE}-build
+ export PKG_CONFIG=true
- CC="${CC} ${CLFS_BUILDFLAGS}" PKG_CONFIG=true \
- ../${PACKAGE}/configure \
- --prefix=/tools \
+ CONFIGURE_OPTS="\
+ ${CONFIGURE_OPTS} \
--enable-elf-shlibs \
- --with-linker=${LD} \
- --host=${CLFS_TARGET} \
--disable-libblkid \
--disable-libuuid \
--disable-fsck \
- --disable-uuidd
+ --disable-uuidd"
+}
+
+hvconfig_post()
+{
+ unset PKG_CONFIG
}
hvbuild()
# Install the static libraries and headers:
${HVMAKE} install-libs
+}
+hvbuild_post()
+{
# Create needed symlinks for a bootable system:
- LINKS="fsck.ext2 fsck.ext3 fsck.ext4 e2fsck"
+ LINKS="fsck.ext2 fsck.ext3 fsck.ext4 fsck.ext4dev e2fsck"
for link in ${LINKS}; do
ln -svfT /tools/sbin/${link} ${LFS}/sbin/${link}