Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 498910 - clang profiles: CXX is not set correctly in dev-util/cmake-2.8.12.1-r3.
Summary: clang profiles: CXX is not set correctly in dev-util/cmake-2.8.12.1-r3.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Gentoo AMD64 FreeBSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-22 12:03 UTC by Yuta SATOH
Modified: 2015-02-13 11:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
sample patch for eclass/flag-o-matic.eclass (498910.patch,427 bytes, patch)
2014-01-26 06:42 UTC, Yuta SATOH
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2014-01-22 12:03:21 UTC
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
Comment 1 Yuta SATOH 2014-01-22 12:11:16 UTC
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
Comment 2 Yuta SATOH 2014-01-26 06:42:21 UTC
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.
Comment 3 Yuta SATOH 2015-02-13 11:42:13 UTC
No need change strip-flags for create stage{1,2,3}.
Please add cxxflags: -stdlib=libc++ ${CFLAGS} to specfile of catalyst instead.