--- Makefile.orig 2006-05-11 13:41:51.000000000 +0300 +++ Makefile 2007-05-23 16:42:19.000000000 +0300 @@ -5,7 +5,7 @@ pam_foreground.so: pam_foreground.c gcc -fPIC -O2 -Wall -c pam_foreground.c - ld -x --shared -o pam_foreground.so pam_foreground.o + ld -lpam -x --shared -o pam_foreground.so pam_foreground.o clean: - rm *.o *.so check-foreground-console