$NetBSD$

--- tools/Makefile.orig	2022-10-12 13:53:13.000000000 +0000
+++ tools/Makefile
@@ -42,7 +42,7 @@ DIRS = $(addprefix $(ROOTDIR)/,utils par
 INCLUDES = $(addprefix -I ,$(DIRS))
 COMPFLAGS = -absname -w +a-4-9-41-42-44-45-48-70 -strict-sequence \
 -warn-error +A -principal -safe-string -strict-formats -bin-annot $(INCLUDES)
-LINKFLAGS = $(INCLUDES)
+LINKFLAGS = $(INCLUDES) -cclib "$(LDFLAGS)"
 VPATH := $(filter-out -I,$(INCLUDES))
 
 programs_byte := \
