X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Fpkg%2Fflex;fp=stage1%2Fpkg%2Fflex;h=c3c4a7763e2dbe00e4e55a236704db5b819774e5;hb=69ac3e7cf686f8e95e47a7ab89bc38796aace488;hp=0000000000000000000000000000000000000000;hpb=f41e274186ffbed8f6bdc4d44da23758c83f1bb9;p=hvlinux.git diff --git a/stage1/pkg/flex b/stage1/pkg/flex new file mode 100644 index 0000000..c3c4a77 --- /dev/null +++ b/stage1/pkg/flex @@ -0,0 +1,17 @@ +#!/bin/bash + +# When Cross Compiling the configure script does not determine the correct +# values for the following, Set the values manually: +config_cache() +{ +cat > ${LFS_TMP}/${PACKAGE}-build/config.cache << EOF +ac_cv_func_malloc_0_nonnull=yes +ac_cv_func_realloc_0_nonnull=yes +EOF +} + +configure_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 +}