X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Fpkg%2Fflex;h=b8ce27801cdd79bcb97b289278452b3dba18c5b3;hb=fc7d8c678ca78bef7c6e7eaeeb579269b7c501be;hp=0d60fdcede4a25b168c1e62b028992a2223d6254;hpb=3605ab38ca7604b1fe43c3bce5e4963730a85d39;p=hvlinux.git diff --git a/stage1/pkg/flex b/stage1/pkg/flex index 0d60fdc..b8ce278 100644 --- a/stage1/pkg/flex +++ b/stage1/pkg/flex @@ -1,17 +1,17 @@ #!/bin/bash +hvconfig_pre() +{ + # Make sure that Flex doesn't try to include headers from /usr/include. + sed -e "s/-I@includedir@//g" -i ${SRC_DIR}/Makefile.in +} + # When Cross Compiling the configure script does not determine the correct # values for the following, Set the values manually: hvconfig_cache() { -cat > ${LFS_TMP}/${PACKAGE}-build/config.cache << EOF +cat > ${BUILD_DIR}/config.cache << EOF ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes EOF } - -hvconfig_pre() -{ - # Make sure that Flex doesn't try to include headers from /usr/include. - sed -e "s/-I@includedir@//g" -i ${LFS_TMP}/${PACKAGE}/Makefile.in -}