Ticket #55382: cxx11-1.1.tcl.diff

File cxx11-1.1.tcl.diff, 1.1 KB (added by ryandesign (Ryan Carsten Schmidt), 7 years ago)
  • cxx11-1.1.tcl

     
    3939
    4040# Compilers supporting C++11 are GCC >= 4.6 and clang >= 3.3.
    4141
    42 if {${cxx_stdlib} eq "libstdc++" } {
     42if {${configure.cxx_stdlib} eq "libstdc++"} {
    4343
    4444    # see https://trac.macports.org/ticket/53194
    4545    configure.cxx_stdlib macports-libstdc++
     
    5959    # do not force all Portfiles to switch from depends_lib to depends_lib-append
    6060    port::register_callback register_gcc_dependents
    6161
    62     if {${build_arch} eq "ppc" || ${build_arch} eq "ppc64"} {
    63         # ports will build on powerpc with gcc6, gcc4ABI-compatible
     62    if {(${os.platform} eq "darwin" && ${os.major} < 10) || ${build_arch} eq "ppc" || ${build_arch} eq "ppc64"} {
     63        # ports will build with gcc6, gcc4ABI-compatible
    6464        pre-configure {
    65             ui_msg "PowerPC C++11 ports are compiling with GCC. EXPERIMENTAL."
     65            ui_msg "C++11 ports are compiling with GCC. EXPERIMENTAL."
    6666        }
    6767        compiler.whitelist  macports-gcc-6
    6868        universal_variant   no