#7786: Don't build all llvm libraries as shared
--------------------+-------------------------
 Reporter:  Krejzi  |      Owner:  blfs-book@…
     Type:  task    |     Status:  new
 Priority:  normal  |  Milestone:  7.10
Component:  BOOK    |    Version:  SVN
 Severity:  normal  |   Keywords:
--------------------+-------------------------
 According to [1]:

 {{{
 BUILD_SHARED_LIBS is only recommended for use by LLVM developers. If you
 want to build LLVM as a shared library, you should use the
 LLVM_BUILD_LLVM_DYLIB option.
 }}}

 I suggest that you replace -DBUILD_SHARED_LIBS=ON with
 -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_LINK_LLVM_DYLIB=ON

 That will produce one shared library, libLLVM.so, and make all the tools
 link to it instead of individual, static ones. Note that mesa doesn't
 correcly detect this kind of shared lib just yet. A sed can be used (taken
 from Archlinux):

 {{{
 sed -i 's/LLVM_SO_NAME=.*/LLVM_SO_NAME=LLVM/' configure
 }}}

 [1] http://llvm.org/docs/CMake.html

--
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/7786>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to