Re: performance regressions in 15.0

From: Rozhuk Ivan <rozhuk.im_at_gmail.com>
Date: Mon, 08 Dec 2025 03:14:39 UTC
On Mon, 8 Dec 2025 03:59:17 +0200
Konstantin Belousov <kib@freebsd.org> wrote:

> > So upstream DOES NOT RECOMMEND to build shared libs to users!!!  
> I am curious about the motivation.
> 
> JFYI, shared llvm libs are required for lot of things.  The incomplete
> list of examples that I am aware of are dri drivers and ispc Intel
> compiler.
> 


For ports:
LLVM_LINK_LLVM_DYLIB:BOOL
    If enabled, tools will be linked with the libLLVM shared library. Defaults to OFF. Setting LLVM_LINK_LLVM_DYLIB to ON also sets LLVM_BUILD_LLVM_DYLIB to ON. This option is not available on Windows.


I do turn if off (to upstream default state):

# ls /tmp/ports/usr/ports/devel/llvm19/work-default/stage/usr/local/llvm19/bin/clang-19
-rwxr-xr-x  2 root wheel  164M Dec  8 05:04:41 2025 /tmp/ports/usr/ports/devel/llvm19/work-default/stage/usr/local/llvm19/bin/clang-19*

# find /tmp/ports -name "*libLLVM.so*"
/tmp/ports/usr/ports/devel/llvm19/work-default/stage/usr/local/llvm19/lib/libLLVM.so.19.1
/tmp/ports/usr/ports/devel/llvm19/work-default/stage/usr/local/llvm19/lib/libLLVM.so
/tmp/ports/usr/ports/devel/llvm19/work-default/.build/lib/libLLVM.so.19.1
/tmp/ports/usr/ports/devel/llvm19/work-default/.build/lib/libLLVM.so

# make package
===>  Building packages for llvm19-19.1.7_1
===>   Building llvm19-19.1.7_1
(no errors here)


So ports also can be and should be staticly linked and it should not brake anything.