[Midnightbsd-cvs] [MidnightBSD/src] 1af0d8: Makefile.inc1: add missing lib/libmagic__L depende...

Lucas Holt noreply at github.com
Mon Jun 15 13:54:27 EDT 2026


  Branch: refs/heads/fix-libmagic-libz-dep-master
  Home:   https://github.com/MidnightBSD/src
  Commit: 1af0d8eceff2ca0a7f5ce453a92bc4864a32409e
      https://github.com/MidnightBSD/src/commit/1af0d8eceff2ca0a7f5ce453a92bc4864a32409e
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-06-15 (Mon, 15 Jun 2026)

  Changed paths:
    M Makefile.inc1

  Log Message:
  -----------
  Makefile.inc1: add missing lib/libmagic__L dependency on lib/libz__L

libmagic links against -lz (LIBADD= z in lib/libmagic/Makefile) but
Makefile.inc1 had no explicit lib/libmagic__L: lib/libz__L dependency.
Under high parallelism (e.g. make -j28) libmagic could begin linking
before libz was installed into the sysroot, producing:

  ld: error: unable to find library -lz
  *** [libmagic.so.4.full] Error code 1

All other libraries that link libz already have this dependency
declared (libarchive, libssh, libzfs, libsqlite3, etc).

Signed-off-by: Lucas Holt <luke at foolishgames.com>



To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications


More information about the Midnightbsd-cvs mailing list