Assume that we have libcrypt if we have /usr/include/crypt.h.
authorPaul Mackerras <paulus@samba.org>
Tue, 12 Jul 2005 01:50:23 +0000 (01:50 +0000)
committerPaul Mackerras <paulus@samba.org>
Tue, 12 Jul 2005 01:50:23 +0000 (01:50 +0000)
This should fix linking on 64-bit architectures.

pppd/Makefile.linux

index d75b20c7086988d717768b85beb0815599233b0b..306f8f3979b5b145e969880bb19f97a884c49421 100644 (file)
@@ -1,6 +1,6 @@
 #
 # pppd makefile for Linux
-# $Id: Makefile.linux,v 1.67 2005/07/10 11:19:10 paulus Exp $
+# $Id: Makefile.linux,v 1.68 2005/07/12 01:50:23 paulus Exp $
 #
 
 # Default installation locations
@@ -118,9 +118,7 @@ CFLAGS   += -DHAS_SHADOW
 endif
 
 ifneq ($(wildcard /usr/include/crypt.h),)
-CFLAGS   += -DHAVE_CRYPT_H=1
-endif
-ifneq ($(wildcard /usr/lib/libcrypt.*),)
+CFLAGS  += -DHAVE_CRYPT_H=1
 LIBS   += -lcrypt
 endif