From ae2524bf8887beace8034a9207bcb5556acbacd9 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Fri, 21 Jan 2022 16:24:14 -0500 Subject: [PATCH] ignore environment for test Makefile variables --- test/Makefile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/test/Makefile b/test/Makefile index f47fc32..cea8d4f 100644 --- a/test/Makefile +++ b/test/Makefile @@ -9,16 +9,21 @@ ifeq (,$(filter $(CONFIG_SLAB_CANARY),true false)) $(error CONFIG_SLAB_CANARY must be true or false) endif -LDLIBS := -lpthread -lhardened_malloc - dir=$(dir $(realpath $(firstword $(MAKEFILE_LIST)))) -LDFLAGS := -Wl,-L$(dir)../out,-R,$(dir)../out -CXXFLAGS := -std=c++17 -fsized-deallocation -CPPFLAGS += \ +CPPFLAGS := \ + -D_GNU_SOURCE \ -DSLAB_CANARY=$(CONFIG_SLAB_CANARY) \ -DCONFIG_EXTENDED_SIZE_CLASSES=$(CONFIG_EXTENDED_SIZE_CLASSES) +SHARED_FLAGS := -O3 + +CFLAGS := -std=c17 $(SHARED_FLAGS) -Wmissing-prototypes +CXXFLAGS := -std=c++17 -fsized-deallocation $(SHARED_FLAGS) +LDFLAGS := -Wl,-L$(dir)../out,-R,$(dir)../out + +LDLIBS := -lpthread -lhardened_malloc + EXECUTABLES := \ offset \ mallinfo \