diff --git a/buildtools/Makefile b/buildtools/Makefile index 0490865..8d6166f 100644 --- a/buildtools/Makefile +++ b/buildtools/Makefile @@ -44,7 +44,7 @@ genfontc:%:%.o $(NETPBMLIB) $(LD_FOR_BUILD) -o $@ $(LDFLAGS_FOR_BUILD) $< $(NETPBMLIB) $(BUILDPROGS):%:%.o - $(LD_FOR_BUILD) -o $@ $(LDFLAGS_FOR_BUILD) $< + $(LD_FOR_BUILD) -o $@ $(LDFLAGSPRE) $< distclean clean: cleanlocal .PHONY: cleanlocal diff --git a/test/Makefile b/test/Makefile index 4f0c063..7ad3a46 100644 --- a/test/Makefile +++ b/test/Makefile @@ -18,7 +18,7 @@ testrandom.o: testrandom.c $(CC_FOR_BUILD) -c -o $@ $(CFLAGS_FOR_BUILD) $< testrandom: testrandom.o - $(LD_FOR_BUILD) -o $@ $(LDFLAGS_FOR_BUILD) $< + $(LD_FOR_BUILD) -o $@ $(LDFLAGSPRE) $< RAND_VARIETY ?= $(shell ./testrandom -x)