available. Also look in /usr/lib/*/ for the library, to handle
Debian multiarch systems. Based on patch from Andrew Gregory.
git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@129
456724a4-4300-0410-8514-
c89748c515a2
* Rename internal functions warn() and shutdown() in the shutdown
binary to avoid surprising dynamic library name resolution
conflict with NSS modules. Patch from Richard Tollerton.
+ * Try harder to find libcrypt.*, even if there is no static library
+ available. Also look in /usr/lib/*/ for the library, to handle
+ Debian multiarch systems. Based on patch from Andrew Gregory.
-- Petter Reinholdtsen <pere@hungry.com> Sun Apr 11 11:28:55 CEST 2010
endif
# Additional libs for GNU libc.
-ifneq ($(wildcard /usr/lib*/libcrypt.a),)
+ifneq ($(wildcard /usr/lib*/libcrypt.*),)
+ SULOGINLIBS += -lcrypt
+endif
+
+# Additional libs for GNU libc / multiarch on Debian based systems.
+ifneq ($(wildcard /usr/lib/*/libcrypt.*),)
SULOGINLIBS += -lcrypt
endif