[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sysvinit-devel] [PATCH] Makefile: detect dynamic libcrypt

From: Andrew Gregory
Subject: [sysvinit-devel] [PATCH] Makefile: detect dynamic libcrypt
Date: Sat, 7 Dec 2013 10:49:39 -0500

Even though the libcrypt detection was looking for libcrypt.a, sulogin
was being linked against libcrypt dynamically anyway because -static was
not used.  Using libcrypt.a failed to find libcrypt on systems without
static libs, causing compiler errors.

Signed-off-by: Andrew Gregory <address@hidden>
 src/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Makefile b/src/Makefile
index 9e80533..215ad19 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -89,7 +89,7 @@ else
 # Additional libs for GNU libc.
-ifneq ($(wildcard /usr/lib*/libcrypt.a),)
+ifneq ($(wildcard /usr/lib*/libcrypt.*),)
   SULOGINLIBS  += -lcrypt

reply via email to

[Prev in Thread] Current Thread [Next in Thread]