LFCS 2012: LLVM and Linux
Posted May 1, 2012 14:53 UTC (Tue) by
jwakely (subscriber, #60262)
In reply to:
LFCS 2012: LLVM and Linux by kmccarty
Parent article:
LFCS 2012: LLVM and Linux
Issue 2 is that if one has installed a version of GCC in /usr/local, it seems to be impossible to build Clang such that by default it will use that GCC version's object files (crtbegin.o, etc.) and libstdc++ headers without actually hacking the portions of the Clang source code where these paths are defined. Perhaps this has improved since the version of Clang I'm at (SVN trunk from Sept. 30, 2011)
Yes, it changed. At one time you needed to
hack the source. Then you needed to use
--with-cxx-include-root and --with-cxx-include-arch at configure-time, now you just use
--with-gcc-toolchain and it does the right thing. It took a while getting there though.
(
Log in to post comments)