diff options
Diffstat (limited to 'vars/gcc.vars')
-rw-r--r-- | vars/gcc.vars | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vars/gcc.vars b/vars/gcc.vars index c5e1f22a..76a1437f 100644 --- a/vars/gcc.vars +++ b/vars/gcc.vars @@ -261,6 +261,16 @@ pkg_gcc_full_all() { export MAKE="make LIBTOOL=slibtool"; # GCC, native. pkgp_gcc_build_dir "cbb-gcc-${PKG_VERSION}" native; + if ! ex_pkg_state_test "${PKG_NAME}" fetch "${_restart_at}"; then + ex_rtl_fetch_urls_git "${PKG_BASE_DIR}" "cbb-gcc-${PKG_VERSION}=${DEFAULT_GITROOT}/cbb/cbb-gcc-${PKG_VERSION}"; + ex_pkg_state_set "${PKG_NAME}" fetch -patch; + fi; + if ! ex_pkg_state_test "${PKG_NAME}" patch "${_restart_at}"; then + if [ -e "${MIDIPIX_BUILD_PWD}/patches/${PKG_NAME}.local.patch" ]; then + patch -b -d "${PKG_BASE_DIR}" -p0 < "${MIDIPIX_BUILD_PWD}/patches/${PKG_NAME}.local.patch"; + fi; + ex_pkg_state_set "${PKG_NAME}" patch -configure; + fi; pkgp_gcc_setup_env "${PKG_VERSION}"; if ! ex_pkg_state_test "${PKG_NAME}" configure "${_restart_at}"; then ex_rtl_fileop mkdir "${PKG_PREFIX}/${PKG_TARGET}"; |