-stdlib=libc++ added to configure.cxxflags but not configure.ldflags

Rainer Müller raimue at macports.org
Tue Jan 26 10:52:14 PST 2016


On 2016-01-26 19:13, Joshua Root wrote:
> On 2016-1-27 04:55 , Rainer Müller wrote:
>> -stdlib=... is a linker flag not for ld itself, but for the clang++ to
>> pass the correct library to ld.
>>
>> I think this should be added to configure.ldflags in the same way it is
>> handled for configure.cxxflags.
> 
> Does that work (or even make sense) when linking is not being done with
> clang++?

How else would you link C++ code if not with clang/clang++?

The -stdlib=libc++ option is already specific to clang/clang++,
gcc/g++ do not understand it.

Rainer


More information about the macports-dev mailing list