Make the build even more hermetic. Pull in GNU flex 2.5.4.

This commit is contained in:
Krystian Bacławski
2014-11-20 10:12:38 +01:00
parent 51b535b256
commit ed14c0bd6b
4 changed files with 16 additions and 1 deletions
-1
View File
@@ -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
+4
View File
@@ -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"
+3
View File
@@ -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"
+9
View File
@@ -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" \