From 570c0d73d73d4f0b84afd6d9632db18b8ca375f4 Mon Sep 17 00:00:00 2001 From: Avril Date: Sat, 20 Apr 2024 11:03:16 +0100 Subject: [PATCH] Fixed linker not finding local library on `test` compilation. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fortune for memfd_secret-shim's current commit: Future blessing − 末吉 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a6a3f7a..39ffdd7 100644 --- a/Makefile +++ b/Makefile @@ -364,4 +364,4 @@ uninstall: #TODO: We can make the target between `{debug,release}{.a,.so}` configurable by call. e.g. `TARGET=release.a make test` $(PROJECT)-test: lib$(PROJECT)-$(TARGET) - $(CC) $(CFLAGS) $(TEST_CFLAGS) src/test/*.c -o $@ -l:$< $(LDFLAGS) $(TEST_LDFLAGS) + $(CC) $(CFLAGS) $(TEST_CFLAGS) src/test/*.c -o $@ -L. -l:$< $(LDFLAGS) $(TEST_LDFLAGS)