--disable-nls \
--disable-libstdcxx-pch \
--with-system-zlib \
- --with-native-system-header-dir=/tools/include \
+ --with-native-system-header-dir=${TOOLS_DIR}/include \
--disable-libssp \
--enable-checking=release \
--enable-libstdcxx-time \
--enable-languages=c,c++"
- cd ${LFS_TMP}/${PACKAGE}
+ cd ${SRC_DIR}
# Change the StartFile Spec to point to the correct library location:
echo -en '\n' >> gcc/config/linux.h
hvbuild()
{
${HVMAKE} AS_FOR_TARGET="${AS}" LD_FOR_TARGET="${LD}"
- ${HVMAKE} install
+ ${HVMAKE} DESTDIR=${LFS} install
}
hvbuild_post()
{
# Install the libiberty header file that is needed by some packages:
- cp -v ${LFS_TMP}/${PACKAGE}/include/libiberty.h /tools/include
+ cp -v ${SRC_DIR}/include/libiberty.h ${TOOLS_DIR}/include
}