diff --git a/test/Makefile.tests b/test/Makefile.tests index bb2bb881f1f..1c08aec6c18 100644 --- a/test/Makefile.tests +++ b/test/Makefile.tests @@ -77,7 +77,16 @@ ifeq ($(TRACEM), yes) TRACELIBS := -L$(LEVEL)/test/Libraries/Output -linstr.$(ARCH) endif -LLCLIBS += -lm +POOLFLAGS = +DOPOOLALLOC = +## If POOLALLOC is "yes", set the opt flag and the POOLLIBS varoab;e +ifeq ($(POOLALLOC), yes) + POOLFLAGS += -poolalloc + DOPOOLALLOC = yes + POOLLIBS := -L$(LEVEL)/test/Libraries/Output +endif + +LLCLIBS := $(LLCLIBS) -lm clean:: $(RM) -f a.out core