aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/Makefile b/utils/Makefile
index 48f9e7a0..0cefd27b 100644
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -36,9 +36,9 @@ SRCS = shd.c ps.c settrans.c syncfs.c showtrans.c addauth.c rmauth.c \
OBJS = $(filter-out %.sh,$(SRCS:.c=.o))
HURDLIBS = ps ihash store fshelp ports ftpconn shouldbeinlibc
LDLIBS += -lpthread
-login-LDLIBS = -lutil -lcrypt
-addauth-LDLIBS = -lcrypt
-setauth-LDLIBS = -lcrypt
+login-LDLIBS = -lutil $(and $(HAVE_LIBCRYPT),-lcrypt)
+addauth-LDLIBS = $(and $(HAVE_LIBCRYPT),-lcrypt)
+setauth-LDLIBS = $(and $(HAVE_LIBCRYPT),-lcrypt)
mount-LDLIBS = $(libblkid_LIBS)
mount-CPPFLAGS = $(libblkid_CFLAGS)