Instead of building all llvm src with rtti, I think you might choose to 
<br/>specify
<br/>your tool/project/plugin compile options.  This link may be helpful for you
<br/>(<a href="http://llvm.org/docs/MakefileGuide.html#override-variables" target="_top" rel="nofollow" link="external">http://llvm.org/docs/MakefileGuide.html#override-variables</a>).
<br/><br/>In one of our projects, we also use boost; and add an additional 
<br/>CXXFLAGS option
<br/>at the last line of the Makfile in the project folder like below:
<br/><br/>     CXXFLAGS += -frtti
<br/><br/>Hope this would take effect for you as well :-)
<br/><br/><br/><br/>On 03/23/2013 10:55 PM, Pablo Barrio [via LLVM] wrote:
<div class='shrinkable-quote'><br/>>
<br/>>
<br/>> Hi all,
<br/>>
<br/>> I'm having problems compiling LLVM 3.2 with RTTI enabled. Since my code makes heavy use of the Boost libraries, RTTI is a must. This is the script I use to compile (as root):
<br/>>
<br/>>
<br/>> SRC_ROOT=$PWD
<br/>> OBJ_ROOT=/export/apps/llvm
<br/>> INSTALL_ROOT=/usr/local
<br/>>
<br/>> mkdir -p $OBJ_ROOT
<br/>>
<br/>> cd $OBJ_ROOT
<br/>> $SRC_ROOT/configure --prefix=$INSTALL_ROOT \
<br/>>        --enable-ltdl-install \
<br/>>        --enable-jit \
<br/>>        --enable-assertions \
<br/>>        --enable-optimized \
<br/>>        --enable-targets=x86,x86_64
<br/>>        --enable-profiling \
<br/>>
<br/>> make REQUIRES_RTTI=1
<br/>> sudo make install
<br/>>
<br/>>
<br/>>
<br/>> According to previous posts to the list, REQUIRE_RTTI=1 should do, but I still get a lot of RTTI-related errors like this while linking "opt":
<br/>>
<br/>> (.data.rel.ro._ZTIN4llvm10X86JITInfoE[typeinfo for llvm::X86JITInfo]+0x10): undefined reference to `typeinfo for llvm::TargetJITInfo'
<br/>>
<br/>> Any ideas?
<br/>>
<br/>> Thanks ahead,
<br/>> Pablo
<br/>>
<br/>>
<br/>> _______________________________________________
<br/>> LLVM Developers mailing list
<br/>> <a href="/user/SendEmail.jtp?type=node&node=56174&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>         <a href="http://llvm.cs.uiuc.edu" target="_top" rel="nofollow" link="external">http://llvm.cs.uiuc.edu</a><br/>> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_top" rel="nofollow" link="external">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br/>>
<br/>>
<br/>>
<br/>>
<br/>> _______________________________________________
<br/>> If you reply to this email, your message will be added to the discussion below:
<br/>> <a href="http://llvm.1065342.n5.nabble.com/LLVM-3-2-compilation-with-RTTI-enabled-tp56160.html" target="_top" rel="nofollow" link="external">http://llvm.1065342.n5.nabble.com/LLVM-3-2-compilation-with-RTTI-enabled-tp56160.html</a><br/>> To start a new topic under LLVM - Dev, email <a href="/user/SendEmail.jtp?type=node&node=56174&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br/>> To unsubscribe from LLVM, visit <a href="" target="_top" rel="nofollow" link="external">
<br/></div>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://llvm.1065342.n5.nabble.com/LLVM-3-2-compilation-with-RTTI-enabled-tp56160p56174.html">Re: LLVM 3.2 compilation with RTTI enabled</a><br/>
Sent from the <a href="http://llvm.1065342.n5.nabble.com/LLVM-Dev-f3.html">LLVM - Dev mailing list archive</a> at Nabble.com.<br/>