diff --git a/007.gcc.full.build b/007.gcc.full.build index a5f9439..066f6d3 100644 --- a/007.gcc.full.build +++ b/007.gcc.full.build @@ -133,6 +133,10 @@ else if ! is_build_script_done install; then if [ "${3}" = stage1 ]; then make ${MAKEFLAGS} install-gcc; + if match_uname_any CYGWIN\*; then + ln -s ${PREFIX}/libexec/gcc/${TARGET}/${PKG_GCC_VERSION}/liblto_plugin.dll.a \ + ln -s ${PREFIX}/libexec/gcc/${TARGET}/${PKG_GCC_VERSION}/liblto_plugin.so; + fi; elif [ "${3}" = native ]; then make ${MAKEFLAGS} DESTDIR=${PREFIX_LVL} install; fi; diff --git a/build.subr b/build.subr index b695429..9899240 100644 --- a/build.subr +++ b/build.subr @@ -15,6 +15,7 @@ get_prefix_lrg() { echo "${1%%${2}*}"; }; get_postfix() { echo "${1#*${2}}"; }; get_prefix() { echo "${1%${2}*}"; }; match_any() { [ "${1#*${2}*}" != "${1}" ]; }; +match_uname_any() { set -- ${1} $(uname -s); [ "${2#*${1}*}" != "${2}" ]; }; push_IFS() { _pI_IFS="${IFS}"; IFS="${1}"; }; pop_IFS() { IFS="${_pI_IFS}"; unset _pI_IFS; }; set_build_dir() { PKG_BUILD_DIR=${1}-${2}-${TARGET}; };