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