1 | 104a105,109 |
---|
2 | > |
---|
3 | > if {${configure.compiler} == "llvm-gcc-4.2" || ${configure.compiler} == "clang" } { |
---|
4 | > ui_msg "Erlang doesn't build with ${configure.compiler} on OS X 10.6; using gcc-4.2 instead." |
---|
5 | > configure.compiler gcc-4.2 |
---|
6 | > } |
---|
7 | 116,123c121,123 |
---|
8 | < # We must build Erlang on LLVM with -O0 (see http://llvm.org/bugs/show_bug.cgi?id=7883 |
---|
9 | < # for details). You can also build with gcc-4.2, but NOT the default Lion gcc-4.2, |
---|
10 | < # which is actually llvm-gcc-4.2; instead, you would need to install the gcc-4.2 |
---|
11 | < # port. |
---|
12 | < configure.cflags-delete -O2 |
---|
13 | < configure.cxxflags-delete -O2 |
---|
14 | < configure.cflags-append -O0 |
---|
15 | < configure.cxxflags-append -O0 |
---|
16 | --- |
---|
17 | > # You need macport's gcc42 to build erlang |
---|
18 | > depends_build-append port:gcc42 |
---|
19 | > configure.compiler macports-gcc-4.2 |
---|