From 41d5cc5c6a90d493d82ab9436ca6890ba1ded96a Mon Sep 17 00:00:00 2001 From: Lucio Andrés Illanes Albornoz (arab, vxp) Date: Feb 27 2016 19:01:20 +0000 Subject: Cygwin compatibility fix ($PREFIX/libexec/gcc/${TARGET}/${PKG_CBB_VERSION}/liblto_plugin.{dll.a,so}.) --- 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}; };