pkgsrc-Users archive

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

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



On Sat, Aug 27, 2022 at 4:45 AM Edgar Fuß <ef%math.uni-bonn.de@localhost> wrote:
>
> > 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?

Yes, and the easy way to avoid that is to have Clang use the macOS
provided libc++.so, by commenting out the .include lines:

    .include "../../lang/compiler-rt/buildlink3.mk"
    .include "../../lang/libcxx/buildlink3.mk"
    .include "../../lang/libcxxabi/buildlink3.mk"
    .include "../../lang/libunwind/buildlink3.mk"

and just keep

    CMAKE_ARGS+=    -DCLANG_DEFAULT_CXX_STDLIB:STRING="libc++"


Home | Main Index | Thread Index | Old Index