On 04/15/2018 02:25 AM, Pierre Labastie wrote:
On 14/04/2018 23:50, Ken Moffat wrote:
On Sat, Apr 14, 2018 at 10:26:22PM +0200, Pierre Labastie wrote:
I think there is a switch for building shared libraries in llvm. The book was
using it at a time, but there were problems with mesa IIRC.
The switch is -DBUILD_SHARED_LIBS=ON, and the documentation still says:
``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.''
The book uses the LLVM_BUILD_LLVM_DYLIB option.
Indeed it does, but I see that I also use -DLLVM_LINK_LLVM_DYLIB=ON.
I assume that might have been in the book at some time, but it's
what I've been using without obvious problems.
I'll try -DLLVM_LINK_LLVM_DYLIB=ON soon, but I wanted to let you know that
rustc built with book's instructions on LLVM built with -DBUILD_SHARED_LIBS=ON.
Well this is interesting. I tried to build llvm with:
CC=gcc \
CXX=g++ \
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DLLVM_ENABLE_FFI=ON \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_BUILD_LLVM_DYLIB=ON \
-DLLVM_LINK_LLVM_DYLIB=ON \
-DBUILD_SHARED_LIBS=ON \
-DLLVM_TARGETS_TO_BUILD="host;AMDGPU" \
-Wno-dev ..
-- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG
-- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG - Failed
CMake Error at tools/llvm-shlib/CMakeLists.txt:39 (list):
list sub-command REMOVE_DUPLICATES requires list to be present.
-- Configuring incomplete, errors occurred!
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page