mirror of
https://frontier.innolan.net/github/amigaos-cross-toolchain6.git
synced 2024-10-19 10:29:55 +00:00
Make the build even more hermetic. Pull in GNU flex 2.5.4.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user