From 0f1fc633e539f002de866d33d8847a6f4ad5173e Mon Sep 17 00:00:00 2001 From: Thomas Preisner <thomas.preisner@fau.de> Date: Fri, 15 Oct 2021 15:36:53 +0200 Subject: [PATCH] Makefile: reference external libraries after source files --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3a1ecb6..910ffca 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ test_pam_goatherd: goatherd pam_goatherd.so test_pam_goatherd.sh test: test_pg test_pam_goatherd pam_goatherd.so: pam_goatherd.o - $(LINK.c) -lpam -lgnutls -Wl,-soname,$@ -shared $< -o $@ + $(LINK.c) $< -o $@ -lpam -lgnutls -Wl,-soname,$@ -shared clean: rm -f pam_goatherd.o pam_goatherd.so goatherd -- GitLab