_prebuild_libs

From: Cy Schubert <Cy.Schubert_at_cschubert.com>
Date: Thu, 08 May 2025 19:34:12 UTC
Hi,

As some of you may (or may not) know, I'm working on importing MIT KRB5 
into FreeBSD. I've hit a hard spot where a library depends on other 
libraries listed previously in the _prebuild_libs list are required to 
build this library. The problem I'm seeing is libraries listed in 
_prebuild_libs are built asynchronously. The library that depends others 
fails to find its LIBADD libraries.

Without the new "problematic" library everything up to that point builds 
fine. I don't think the issue is with the library Makefile itself.

Building world without -j circumvents the problem but this isn't a 
solution. Is _prebuild_libs not guaranteed to build somewhat sequentially?

Should I instead define the MIT _prebuild_libs as krb5/util and krb5/lib 
instead of their individual libraries? This would certainly guarantee 
prerequisite libraries are built first.


-- 
Cheers,
Cy Schubert <Cy.Schubert@cschubert.com>
FreeBSD UNIX:  <cy@FreeBSD.org>   Web:  https://FreeBSD.org
NTP:           <cy@nwtime.org>    Web:  https://nwtime.org

			e^(i*pi)+1=0