Ticket #31585: erlang.portfile.patch

File erlang.portfile.patch, 647 bytes (added by vkuznet (Valentin Kuznetsov), 13 years ago)
  • Portfile

    old new  
    110110    # This is a workaround.
    111111    #patchfiles-append   patch-erts_emulator_sys_unix_ddll.c.diff
    112112    configure.ldflags-append -framework CoreFoundation
     113
     114    # We must build Erlang on LLVM with -O0 (see http://llvm.org/bugs/show_bug.cgi?id=7883
     115    # for details).
     116    if {${configure.compiler} == "clang"} {
     117        configure.compiler llvm-gcc-4.2
     118    }
     119
     120    configure.cflags-delete -O2
     121    configure.cxxflags-delete -O2
     122    configure.cflags-append -O0
     123    configure.cxxflags-append -O0
    113124}
    114125
    115126platform macosx {