From 3060b8ef449ae97e1f66f43e7be078fad9b4317e Mon Sep 17 00:00:00 2001 From: rdevshp Date: Sun, 31 May 2026 06:48:56 +0000 Subject: [PATCH] accept custom OUT dir for make test --- Makefile | 2 +- test/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7ad20e8..67479fe 100644 --- a/Makefile +++ b/Makefile @@ -147,7 +147,7 @@ clean: $(MAKE) -C test/ clean test: $(OUT)/libhardened_malloc$(SUFFIX).so - $(MAKE) -C test/ + $(MAKE) -C test/ OUT='$(abspath $(OUT))' python3 -m unittest discover --start-directory test/ .PHONY: check clean tidy test diff --git a/test/Makefile b/test/Makefile index fb680a4..8e41f0e 100644 --- a/test/Makefile +++ b/test/Makefile @@ -20,7 +20,7 @@ SHARED_FLAGS := -O3 CFLAGS := -std=c23 $(SHARED_FLAGS) -Wmissing-prototypes CXXFLAGS := -std=c++17 -fsized-deallocation $(SHARED_FLAGS) -LDFLAGS := -Wl,-L$(dir)../out,-R,$(dir)../out +LDFLAGS := -Wl,-L$(OUT),-R,$(OUT) LDLIBS := -lpthread -lhardened_malloc