diff --git a/README.md b/README.md index 0553587..d8b368b 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,6 @@ AmigaOS specific documents: You have to have following packages installed in your system: * GNU autoconf - * GNU flex 2.5.x * GNU gcc 4.x **32-bit version!** * GNU make 3.x * lha diff --git a/archives/fetch.sh b/archives/fetch.sh index 49bdbac..ac0b268 100755 --- a/archives/fetch.sh +++ b/archives/fetch.sh @@ -34,6 +34,10 @@ download "ftp://ftp.gnu.org/gnu/gcc/gcc-4.5.0/gcc-g++-4.5.0.tar.gz" download "ftp://ftp.gnu.org/gnu/binutils/binutils-2.9.1.tar.gz" download "ftp://ftp.gnu.org/gnu/binutils/binutils-2.14.tar.gz" +download \ + "http://sourceforge.net/projects/flex/files/flex/2.5.4.a/flex-2.5.4a.tar.gz/download" \ + "flex-2.5.4.tar.gz" + download \ "http://github.com/cahirwpz/libnix/archive/master.zip" \ "libnix-2.2.zip" diff --git a/bootstrap.conf b/bootstrap.conf index ba42d97..945eeec 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -50,6 +50,9 @@ readonly M4="m4-1.4.17" readonly M4_SRC="${M4}.tar.gz" # Needed by GCC 2.95.3 and 3.4.6 +readonly FLEX="flex-2.5.4" +readonly FLEX_SRC="${FLEX}.tar.gz" + readonly BISON="bison-1.35" readonly BISON_SRC="${BISON}.tar.gz" diff --git a/bootstrap.sh b/bootstrap.sh index e6f1473..4d85fdd 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -148,6 +148,7 @@ function unpack_sources { popd unpack_clean "${TEXINFO}" "${TEXINFO_SRC}" + unpack_clean "${FLEX}" "${FLEX_SRC}" unpack_clean "${BISON}" "${BISON_SRC}" unpack_clean "${GAWK}" "${GAWK_SRC}" unpack_clean "${M4}" "${M4_SRC}" @@ -198,6 +199,14 @@ function build_tools { popd if compare_version "${GCC_VER}" "le" "3.4.6"; then + mkdir_empty "${FLEX}" + pushd "${FLEX}" + "${SOURCES}/${FLEX}/configure" \ + --prefix="${HOST_DIR}" + ${MAKE} + make install + popd + mkdir_empty "${BISON}" pushd "${BISON}" "${SOURCES}/${BISON}/configure" \