Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
configure.cxx_stdlib default for macports-gcc
Set the default value of configure.cxx_stdlib to macports-libstdc++ when
using one of the macports-gcc-* compilers.
  • Loading branch information
jmroot committed Jun 1, 2018
1 parent a514690 commit feaba00
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/port1.0/portconfigure.tcl
Expand Up @@ -56,7 +56,7 @@ options configure.cxx \

default configure.cxx {[portconfigure::configure_get_compiler cxx]}
default configure.cxx_archflags {[portconfigure::configure_get_archflags cxx]}
default configure.cxx_stdlib {$cxx_stdlib}
default configure.cxx_stdlib {[portconfigure::configure_get_cxx_stdlib]}
default configure.cxxflags \
{[portconfigure::construct_cxxflags ${configure.optflags}]}
default configure.objcxx {[portconfigure::configure_get_compiler objcxx]}
Expand Down Expand Up @@ -98,6 +98,14 @@ proc portconfigure::stdlib_trace {opt action args} {
}
return
}
proc portconfigure::configure_get_cxx_stdlib {} {
global cxx_stdlib configure.compiler
if {![string match macports-gcc-* ${configure.compiler}]} {
return $cxx_stdlib
} else {
return macports-libstdc++
}
}

# ********** END C++ / OBJECTIVE-C++ **********

Expand Down

0 comments on commit feaba00

Please sign in to comment.