eclass/toolchain.eclass: disable libstdcxx-time for bare metal
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 29 Apr 2018 15:26:25 +0000 (16:26 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 29 Apr 2018 15:31:31 +0000 (16:31 +0100)
commite4da4705a51d46236f3e9a0d2c850455b7d9772c
tree559970f4994ec9d2be5714f0bcf9ad32ee24c745
parentc57f678c4c00c1bec9b26fee282d1150fcfdcf03
eclass/toolchain.eclass: disable libstdcxx-time for bare metal

Historically Gentoo unconditionally sets --enable-libstdcxx-time=yes
to avoid --enable-libstdcxx-time=rt on linux targets, bug #411681

Unfortunately this conflicts with arm-none-eabi and other
bare-metal targets that don't provide enough plumbing
to support for POSIX timers.

This change ogerrides our default to --disable-libstdcxx-time
on *-elf and *-eabi targets.

Tested as:
  $ crossdev --stage4 arm-none-eabi

Reported-by: scheer@wsoptics.de
Reported-by: Thomas Schneider
Bug: https://bugs.gentoo.org/411681
Bug: https://bugs.gentoo.org/589672
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
eclass/toolchain.eclass