diff options
author | Debian sysvinit maintainers <debian-init-diversity@chiark.greenend.org.uk> | 2018-11-23 16:45:40 +0000 |
---|---|---|
committer | Dmitry Bogatov <KAction@debian.org> | 2018-11-23 16:45:40 +0000 |
commit | 8b813564b49233480518ff303639f30ae046cb81 (patch) | |
tree | 8d6566768436bdaf9a394e16babb4d3cbfbd3f81 | |
parent | 9d56d6686420491a47914b0f5c7a644bf351a49a (diff) |
_multiarch_libcrypt
Purpose: Use multiarch library search path to find and link with libcrypt
Fixes: #629677
Status: Not sent upstream.
Gbp-Pq: Name 40_multiarch_libcrypt.patch
-rw-r--r-- | src/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Makefile b/src/Makefile index 3c93783b..b41d2e37 100644 --- a/src/Makefile +++ b/src/Makefile @@ -89,14 +89,14 @@ else SULOGINLIBS = endif +LIBDIR=/usr/lib # Additional libs for GNU libc. -ifneq ($(wildcard /usr/lib*/libcrypt.*),) +ifneq ($(wildcard /usr/lib*/libcrypt.a),) + SULOGINLIBS += -lcrypt +else +ifneq ($(wildcard $(LIBDIR)*/libcrypt.a),) SULOGINLIBS += -lcrypt endif - -# Additional libs for GNU libc / multiarch on Debian based systems. -ifneq ($(wildcard /usr/lib/*/libcrypt.*),) - SULOGINLIBS += -lcrypt endif all: $(BIN) $(SBIN) $(USRBIN) |