[riot-notifications] [RIOT] cortexm: Add support for building with LLVM/Clang (#3119)

Kaspar Schleiser notifications at github.com
Mon Jun 1 13:13:40 CEST 2015

> +# Tell clang to cross compile
> +export CFLAGS     += -target $(TARGET_TRIPLE)
> +export CXXFLAGS   += -target $(TARGET_TRIPLE)
> +export LINKFLAGS  += -target $(TARGET_TRIPLE)
> +
> +# Since Clang is not installed as a separate instance for each crossdev target
> +# we need to tell it where to look for platform specific includes (Newlib
> +# headers instead of Linux/Glibc headers.)
> +# On GCC this is done when building the cross compiler toolchain so we do not
> +# actually need to specify the include paths for system includes.
> +# Ubuntu gcc-arm-embedded toolchain (https://launchpad.net/gcc-arm-embedded)
> +# places newlib headers in several places, but the primary source seem to be
> +# /etc/alternatives/gcc-arm-none-eabi-include
> +# Gentoo crossdev places newlib headers in /usr/arm-none-eabi/include
> +# Ubuntu also seem to put a copy of the newlib headers in the same place as
> +# Gentoo crossdev, but we prefer to look at /etc/alternatives first.


Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150601/918ed88e/attachment.html>

More information about the notifications mailing list