$NetBSD: patch-Makefile,v 1.10 2022/06/18 14:23:13 fcambus Exp $ - Do not hard-code -pthread, as it is handled by the pkgsrc infrastructure. - Do not hard-code -ldl --- Makefile.orig 2022-06-18 03:29:18.000000000 +0000 +++ Makefile @@ -42,7 +42,7 @@ MOLD_CXXFLAGS := -std=c++20 -fno-excepti -fno-asynchronous-unwind-tables -Ithird-party/xxhash \ -DMOLD_VERSION=\"$(VERSION)\" -DLIBDIR="\"$(LIBDIR)\"" -MOLD_LDFLAGS := -pthread -lz -lm -ldl +MOLD_LDFLAGS := -lz -lm # Get a hash of the current git head. We don't want to use the git # command because the command prints out a warning if running under