diff --git a/dports/devel/nodejs4/Portfile b/dports/devel/nodejs4/Portfile
index c6c71e8..cf1ee44 100644
a
|
b
|
switch $build_arch { |
96 | 96 | } |
97 | 97 | } |
98 | 98 | |
| 99 | # https://trac.macports.org/ticket/52634 |
| 100 | if {${configure.cxx_stdlib} ne "" && [string match *clang* ${configure.cxx}]} { |
| 101 | set stdlib_flag " -stdlib=${configure.cxx_stdlib}" |
| 102 | } else { |
| 103 | set stdlib_flag {} |
| 104 | } |
| 105 | |
99 | 106 | build.args-append CC=${configure.cc} \ |
100 | 107 | CXX=${configure.cxx} \ |
101 | 108 | CXX.host=${configure.cxx} \ |
102 | 109 | CPP=${configure.cpp} \ |
103 | 110 | CFLAGS="${configure.cflags}" \ |
104 | | CXXFLAGS="${configure.cxxflags}" \ |
105 | | LDFLAGS="${configure.ldflags}" \ |
| 111 | CXXFLAGS="${configure.cxxflags}${stdlib_flag}" \ |
| 112 | LDFLAGS="${configure.ldflags}${stdlib_flag}" \ |
106 | 113 | PYTHON=${configure.python} \ |
107 | 114 | V=1 |
108 | 115 | |