On 28 September 2017 at 17:05, Chris Jones wrote: > On 28/09/17 16:02, Mojca Miklavec wrote: >> On 28 September 2017 at 16:57, Chris Jones wrote: >>> >>> Hi, >>> >>> Thanks. In fact I tried adding >>> >>> PortGroup cxx11 1.1 >>> >>> but that gave me the error below. Presumably I am missiong something else >>> ? >>> >>> clang: error: invalid library name in argument >>> '-stdlib=macports-libstdc++' >> >> >> This means that the compiler is missing the necessary patch >> (introduced by Marcus). >> >> You need the variant +libstdcxx and clang-4.0 has that one enabled by >> default, while 3.9 doesn't. > > OK thanks. One of the ports I am interested in fixing will not compile with > clang 4.0 though. Is there a why to do this with 3.9 as well ?
I didn't check, but I assume that the following commit satisfies your needs: https://github.com/macports/macports-ports/commit/c79d736b4cc51f1f9fbea598382ef4960f05b316 Mojca
