ignore environment for test Makefile variables

This commit is contained in:
Daniel Micay 2022-01-21 16:24:14 -05:00
parent e28addda19
commit ae2524bf88
1 changed files with 10 additions and 5 deletions

View File

@ -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 \