[Bug 265652] [exp-run] devel/cmake: update to 3.24.0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Sep 17 11:58:26 BST 2022


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265652

--- Comment #18 from commit-hook at FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/ports/commit/?id=bdc2b54bd1d909666e6970e6464b892eea67aa3b

commit bdc2b54bd1d909666e6970e6464b892eea67aa3b
Author:     Adriaan de Groot <adridg at FreeBSD.org>
AuthorDate: 2022-09-16 22:37:06 +0000
Commit:     Adriaan de Groot <adridg at FreeBSD.org>
CommitDate: 2022-09-17 10:56:01 +0000

    lang/zig, lang/zig-devel: fix for CMake 3.24

    Add the THREADS_PREFER_PTHREAD_FLAG explicitly for zig builds;
    these are the only two ports that need that, otherwise it would
    be a candidate for adding to our platform CMake flags.

    Without the flag, CMake 3.24 changes how pthreads are searched,
    and it ends up leaving out the -pthread flag from the compile.
    For zig, this causes the bootstrap compiler to crash immediately
    (it does not even reach main), which kills the build. Prior to
    CMake 3.24, this flag already existed, but the order in which
    pthreads were searched was different, and we ended up using the
    -pthread flag anyway.

    The PR is for the CMake update. This was the last blocker for it.

    PR:             265652

 lang/zig-devel/Makefile | 3 +++
 lang/zig/Makefile       | 4 +++-
 2 files changed, 6 insertions(+), 1 deletion(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kde-freebsd mailing list