[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cfe-dev
Subject:    [cfe-dev] How to build clang/llvm with non-default libstdc++
From:       Fons Rademakers <Fons.Rademakers () cern ! ch>
Date:       2010-12-13 17:14:44
Message-ID: 4D065484.7020706 () cern ! ch
[Download RAW message or body]

Hi,

  I have a RHEL 5.5 system that comes with gcc 4.1.2 and hence since 
recently I cannot build on this platform due to a regression in handling 
the 4.1.2 libstdc++ headers. A solution is to use a >=4.2 libstc++ and on 
that machine I've installed /opt/gcc-4.4.1. Now I've configured llvm using:

../src/configure --prefix=/home/rdm/llvm/inst --enable-targets=host-only 
-enable-llvmc-dynamic --with-cxx-include-root=/opt/gcc-4.4.1/include/c++/4.4.1

and this builds a clang than can be used to compile, but not link as at 
link-time it does not look for the gcc-4.4.1 libs. I did not manage to find 
the configure option to specify the alternative libstd++ library path, like 
e.g. --with-cxx-lib-root or something like that. Any help appreciated.

Cheers, Fons.
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://fons.rademakers.org           Fax:   +41 22 7669640
_______________________________________________
cfe-dev mailing list
cfe-dev@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic