-Now using a single file for all custom definitions and functions for each package.
[hvlinux.git] / stage1 / pkg / flex
diff --git a/stage1/pkg/flex b/stage1/pkg/flex
new file mode 100644 (file)
index 0000000..c3c4a77
--- /dev/null
@@ -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
+}