1 | # $Id: Portfile 141182 2015-10-12 00:05:23Z jeremyhu@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup crossgcc 1.0 |
---|
5 | PortGroup compiler_blacklist_versions 1.0 |
---|
6 | |
---|
7 | crossgcc.setup arm-none-eabi 5.1.0 |
---|
8 | crossgcc.setup_libc newlib 2.4.0.20160527 |
---|
9 | |
---|
10 | revision 2 |
---|
11 | maintainers gmail.com:stuartwesterman openmaintainer |
---|
12 | |
---|
13 | checksums 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 |
---|
21 | configure.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 |
---|
25 | compiler.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) |
---|
29 | if {[string match "*clang*" ${configure.compiler}]} { |
---|
30 | configure.cflags-append -fbracket-depth=512 |
---|
31 | configure.cxxflags-append -fbracket-depth=512 |
---|
32 | } |
---|
33 | |
---|
34 | variant 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 | } |
---|