47b04a07e07d49048af440ee40f26cbfca4b7883
3 SRC_DIR
="${SRC_DIR:-/src/gcc-releases-gcc-4.8.5}"
4 PATCH_DIR
="${PATCH_DIR:-/src/patches}"
5 TARGET
="${TARGET:-aarch64-linux-gnu}"
6 HOST
="${HOST:-x86_64-linux-gnu}"
7 CONFIGURE_ARGS
="${CONFIGURE_ARGS:-}"
8 MAKE_ARGS
="${MAKE_ARGS:-}"
9 MAKE_INSTALL_ARGS
="${MAKE_INSTALL_ARGS:-}"
12 cd "${SRC_DIR}" ||
exit 1
13 while read -r line
; do
14 EXT
=$
(echo "$line" |
rev | cut
-d.
-f1 |
rev)
16 if [[ "${EXT}" =~
[0-9]+ ]] ; then
19 patch -p"${PATCH_LEVEL}" < "${line}"
20 done < <(find "${PATCH_DIR}" -type f
)
27 --enable-fix-cortex-a64-84319
44 powerpc64le-linux-gnu
)
47 --enable-targets=powerpcle-linux
49 --with-long-double-128
56 --enable-targets=powerpc-linux
,powerpc64-linux
58 --with-long-double-128
62 echo "Not supported in gcc-4.8"
68 --with-long-double-128
72 echo "Unrecognized target: ${TARGET}"
77 "${SRC_DIR}/configure" --build="${HOST}" --host="${HOST}" --enable-languages=c
,c
++ \
78 --program-prefix="${TARGET}-" --target="${TARGET}" --program-suffix=-4.8 \
79 --prefix=/usr
/ --with-system-zlib \
80 --libexecdir=/usr
/lib
/ --libdir=/usr
/lib
/ \
81 --disable-nls --disable-shared --enable-host-shared \
82 --disable-bootstrap --enable-threads=posix
--enable-default-pie \
83 --with-sysroot=/ --includedir=/usr
/"${TARGET}"/include \
84 --without-target-system-zlib --enable-multiarch
85 ${TARGET_ARGS[@]} ${CONFIGURE_ARGS} \
86 CFLAGS
='-std=gnu99' CXXFLAGS
='-std=gnu++98'
88 make -j"${NPROC:-$(nproc)}" ${MAKE_ARGS} \
89 CFLAGS
='-std=gnu99' CXXFLAGS
='-std=gnu++98'
91 make install ${MAKE_INSTALL_ARGS}
92 mkdir
-p /output
/usr
/lib
/ /output
/usr
/bin
/
93 cp -r /usr
/lib
/gcc-cross
/output
/usr
/lib
/
94 cp /usr
/bin
/*-4.8
/output
/usr
/bin
/
This page took 0.032633 seconds and 3 git commands to generate.