Fixed linker not finding local library on `test` compilation.

Fortune for memfd_secret-shim's current commit: Future blessing − 末吉
master
Avril 8 months ago
parent e47caa8035
commit 570c0d73d7
Signed by: flanchan
GPG Key ID: 284488987C31F630

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

Loading…
Cancel
Save