Index: Makefile
--- Makefile.orig	2009-02-03 17:45:40.000000000 +0100
+++ Makefile	2011-02-19 12:21:42.000000000 +0100
@@ -22,7 +22,7 @@
 
 pwauth: main.o auth_aix.o auth_bsd.o auth_hpux.o auth_mdw.o auth_openbsd.o \
 	auth_pam.o auth_sun.o fail_log.o lastlog.o nologin.o snooze.o
-	$(CC) -o pwauth $(CFLAGS) main.o auth_aix.o auth_bsd.o auth_hpux.o \
+	$(CC) -o pwauth $(LDFLAGS) main.o auth_aix.o auth_bsd.o auth_hpux.o \
 		auth_mdw.o auth_openbsd.o auth_pam.o auth_sun.o fail_log.o \
 		lastlog.o nologin.o snooze.o $(LIB)
 
Index: config.h
--- config.h.orig	2009-04-03 16:35:00.000000000 +0200
+++ config.h	2011-02-19 12:21:16.000000000 +0100
@@ -112,7 +112,7 @@
 
 /* #define SHADOW_NONE		/**/
 /* #define SHADOW_BSD		/* FreeBSD, NetBSD, OpenBSD, BSDI, OS X */
-#define SHADOW_SUN		/* Linux, Solaris, IRIX */
+#undef SHADOW_SUN		/* Linux, Solaris, IRIX */
 /* #define SHADOW_JFH		/**/
 /* #define SHADOW_MDW		/**/
 /* #define SHADOW_AIX		/* AIX */
@@ -199,8 +199,8 @@
  * uid numbers.
  */
 
-#define UNIX_LASTLOG		/**/
-#define HAVE_LASTLOG_H		/**/
+/* #define UNIX_LASTLOG */		/**/
+/* #define HAVE_LASTLOG_H */		/**/
 
 
 /* If NOLOGIN_FILE is defined to the full path name of a file, then the
@@ -213,7 +213,7 @@
  * right with PAM.
  */
 
-#define NOLOGIN_FILE "/etc/nologin"	/**/
+/* #define NOLOGIN_FILE "/etc/nologin" */	/**/
 #define MIN_NOLOGIN_UID 1		/**/
 
 
@@ -276,7 +276,7 @@
  * given value will be accepted).
  */
 
-#define MIN_UNIX_UID 500	/**/
+/* #define MIN_UNIX_UID 500	*/ /**/
 
 
 /* If IGNORE_CASE is defined, the login given is checked in two different
