b37900
diff -urNp a/buildtools/Makefile b/buildtools/Makefile
b37900
--- a/buildtools/Makefile	2018-09-24 11:36:56.173535757 +0200
b37900
+++ b/buildtools/Makefile	2018-09-24 11:40:09.537553859 +0200
b37900
@@ -44,7 +44,7 @@ genfontc:%:%.o $(NETPBMLIB)
b37900
 	$(LD_FOR_BUILD) -o $@ $(LDFLAGS_FOR_BUILD)  $< $(NETPBMLIB)
b37900
 
b37900
 $(BUILDPROGS):%:%.o
b37900
-	$(LD_FOR_BUILD) -o $@ $(LDFLAGS_FOR_BUILD) $<
b37900
+	$(LD_FOR_BUILD) -o $@ $(LDFLAGSPRE) $<
b37900
 
b37900
 distclean clean: cleanlocal
b37900
 .PHONY: cleanlocal
b37900
diff -urNp a/test/Makefile b/test/Makefile
b37900
--- a/test/Makefile	2018-09-24 11:36:56.211535549 +0200
b37900
+++ b/test/Makefile	2018-09-24 12:40:56.440812065 +0200
b37900
@@ -18,7 +18,7 @@ testrandom.o: testrandom.c
b37900
 	$(CC_FOR_BUILD) -c -o $@ $(CFLAGS_FOR_BUILD) $<
b37900
 
b37900
 testrandom: testrandom.o
b37900
-	$(LD_FOR_BUILD) -o $@ $(LDFLAGS_FOR_BUILD) $<
b37900
+	$(LD_FOR_BUILD) -o $@ $(LDFLAGSPRE) $<
b37900
 
b37900
 RAND_VARIETY ?= $(shell ./testrandom -x)
b37900