Re: WITH_LLVM_LINK_STATIC_LIBRARIES

Mark Millard <[email protected]>
Newsgroups gmane.os.freebsd.devel.hackers
Message-ID <[email protected]>
On 3/16/26 17:04, Dag-Erling Smørgrav wrote:
> Mark Millard <[email protected]> writes:
>> The above from you is what I was describing from the point of view of
>> looking across each of the systems that differ in some of the defaults:
>> the src.conf's presented are not the same.
> 
> Yes, they are.

Ahh, I see, when there is such a distinction across architectures it is
explicit about WITHOUT_ vs. WITH_ and which is the default setting for
each architecture. For example:

     WITHOUT_HYPERV
             Do not build or install HyperV utilities.

             This is a default setting on arm/armv7, powerpc/powerpc64,
             powerpc/powerpc64le and riscv/riscv64.

     WITH_HYPERV
             Build or install HyperV utilities.

             This is a default setting on amd64/amd64, arm64/aarch64 and
             i386/i386.

Otherwise, when there are no examples of the distinction, it shows just
how to change to not use the default. For example:

     WITH_LLVM_LINK_STATIC_LIBRARIES
             Link LLVM libraries (libllvm, libclang, liblldb) statically
into
             each of the binaries that use them.

             This means that binaries linked against these libraries,
such as
             clang, ld.lld and lldb will be much larger and position
             dependent, but will start more quickly.

That allows the text to be the same across architectures. (An amd64 vs.
armv7 output got an empty diff, for example.)

I probably knew that back in my powerpc* days for FreeBSD, as I
referenced such distinction cases regularly back then for a time
(assuming it worked the same then).

Thanks for the correction to my mangled memory of how it worked/works.

And to void@: Sorry for the noise.

> 
>> My wording may have been confusing for some, but others seemed to have
>> understand it. Sorry for the confusion.
> 
> It's not just confusing, it's wrong.  You claim that “src.conf is not
> invariant across all builds of a specific FreeBSD version”, but it is.
> It is not generated at build time, it is generated manually when its
> inputs change and then checked into the repository, so all builds of the
> same version get the exact same file.
> 
> DES


-- 
===
Mark Millard
marklmi at yahoo.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.