CXX should be clang++ -stdlib=libc++ instead of clang++. FYI, --------------------------------------------- CMake 2.8.12.1, Copyright 2000-2012 Kitware, Inc. C compiler on this system is: clang -O2 -pipe C++ compiler on this system is: clang++ -O2 -pipe Makefile processor on this system is: gmake
When you add -stdlib=libc++ to CXXFLAGS, the problem will be fixed. http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-bsd.git;a=commitdiff;h=3087e63c1abb44dd5f9bbc03b61df3d014c191cd --------------------------------------------- CMake 2.8.12.1, Copyright 2000-2012 Kitware, Inc. C compiler on this system is: clang -O2 -pipe C++ compiler on this system is: clang++ -stdlib=libc++ -O2 -pipe Makefile processor on this system is: gmake
Created attachment 368742 [details, diff] sample patch for eclass/flag-o-matic.eclass Add -stdlib=libc++ to CXX. strip-flags to remove -stdlib=libc++ from CXXFLAGS. http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-bsd.git;a=blobdiff;f=profiles/arch/amd64-fbsd/clang/profile.bashrc;h=d768f5f5eaed3b1833fdd896d1f55d759bf851bc;hp=9ae60c1f1a63d8a068e0ccaf041113c17adbb68f;hb=f40165587b2baa0a911e472dac6dd4d4dd4e595b;hpb=ed203e32bb103679c1372b6992ef7b1b59c613e6 If you don't want to duplicate -stdlib=libc++, please apply attached patch to eclass/flag-o-matic.eclass. And please remove -stdlib=libc++ from CXX.
No need change strip-flags for create stage{1,2,3}. Please add cxxflags: -stdlib=libc++ ${CFLAGS} to specfile of catalyst instead.