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.
This commit is contained in:
Petter Reinholdtsen committed 2014-01-25 21:57:25 +00:00
1 parent 45660f6ee6
commit d2f82534cf
2 files changed
+9 -1

No files matched your search

+6 -1
View File
@@ -89,7 +89,12 @@ else
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