summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-libs/newlib/newlib-3.3.0.ebuild6
-rw-r--r--sys-libs/newlib/newlib-9999.ebuild9
2 files changed, 13 insertions, 2 deletions
diff --git a/sys-libs/newlib/newlib-3.3.0.ebuild b/sys-libs/newlib/newlib-3.3.0.ebuild
index 95217157d87a..6362c1259bd1 100644
--- a/sys-libs/newlib/newlib-3.3.0.ebuild
+++ b/sys-libs/newlib/newlib-3.3.0.ebuild
@@ -51,8 +51,10 @@ pkg_setup() {
case ${CTARGET} in
msp430*)
- # bug #717610
- die "gcc on ${CTARGET} needs older newlib. Use newlib-3.1.0."
+ if ver_test $(gcc-version ${CTARGET}) -lt 10.1; then
+ # bug #717610
+ die "gcc for ${CTARGET} has to be 10.1 or above"
+ fi
;;
esac
}
diff --git a/sys-libs/newlib/newlib-9999.ebuild b/sys-libs/newlib/newlib-9999.ebuild
index db1a3fad9cfb..6362c1259bd1 100644
--- a/sys-libs/newlib/newlib-9999.ebuild
+++ b/sys-libs/newlib/newlib-9999.ebuild
@@ -48,6 +48,15 @@ pkg_setup() {
*) die "Use sys-devel/crossdev to build a newlib toolchain" ;;
esac
fi
+
+ case ${CTARGET} in
+ msp430*)
+ if ver_test $(gcc-version ${CTARGET}) -lt 10.1; then
+ # bug #717610
+ die "gcc for ${CTARGET} has to be 10.1 or above"
+ fi
+ ;;
+ esac
}
src_configure() {