Ticket #51397: Portfile.arm-none-eabi-gcc

File Portfile.arm-none-eabi-gcc, 1.4 KB (added by denis-fr (Denis), 8 years ago)

Portfile arm-none-eabi-gcc with newlib 2.4.0

Line 
1# $Id: Portfile 141182 2015-10-12 00:05:23Z jeremyhu@macports.org $
2
3PortSystem      1.0
4PortGroup       crossgcc 1.0
5PortGroup       compiler_blacklist_versions 1.0
6
7crossgcc.setup      arm-none-eabi 5.1.0
8crossgcc.setup_libc newlib 2.4.0.20160527
9
10revision        2
11maintainers     gmail.com:stuartwesterman openmaintainer
12
13checksums       gcc-${version}.tar.bz2 \
14                rmd160  17a9623f384ce10415a603042e0592c9b4956078 \
15                sha256  b7dafdf89cbb0e20333dbf5b5349319ae06e3d1a30bf3515b5488f7e89dca5ad \
16                newlib-${crossgcc.libc_version}.tar.gz \
17                sha1    abc52a5bad9c6decaa569aa32cd0882acd7908ac \
18                rmd160  c86398143803ddb191a27a6fb10920e5b37bb94d
19
20# specific to ARM
21configure.args-append --enable-interwork --disable-newlib-supplied-syscalls
22
23# Failed to build with clang from Xcode 4.5
24# fatal error: error in backend: ran out of registers during register allocation
25compiler.blacklist {clang >= 421 < 422}
26
27# GCC's arm target code contains bracket nesting exceeding clangs's default
28# bracket limit.  (https://llvm.org/bugs/show_bug.cgi?id=19650)
29if {[string match "*clang*" ${configure.compiler}]} {
30    configure.cflags-append -fbracket-depth=512
31    configure.cxxflags-append -fbracket-depth=512
32}
33
34variant libgloss description "libgloss" {
35    configure.args-append --with-libgloss
36    post-extract {
37        ln -s ${workpath}/newlib-${crossgcc.libc_version}/libgloss ${workpath}/gcc-${version}/
38    }
39}