pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Building lang/clag with libcxx etc. (was: building lang/llvm with pkgsrc clang)



> LLVM has its own C++ library named libc++ (aka libcxx). But pkgsrc
> only builds clang with libc++ on SunOS:
> 
>     # Enable full LLVM suite on SunOS
>     .if ${OPSYS} == "SunOS"
>     .include "../../lang/compiler-rt/buildlink3.mk"
>     .include "../../lang/libcxx/buildlink3.mk"
>     .include "../../lang/libcxxabi/buildlink3.mk"
>     .include "../../lang/libunwind/buildlink3.mk"
>     CMAKE_ARGS+=    -DCLANG_DEFAULT_RTLIB:STRING="compiler-rt"
>     CMAKE_ARGS+=    -DCLANG_DEFAULT_CXX_STDLIB:STRING="libc++"
>     .endif
> 
> You can edit the Makefile to remove that conditional (.if ${OPSYS} ==
> "SunOS") and Clang will be built with libc++.
But will I then need the llvm package on the machines that run the compiled 
binaries? Or is there a way of factoring out the libraries?


Home | Main Index | Thread Index | Old Index