--- hurd/boot/Makefile 2022-11-30 11:14:21.084000000 +0100 +++ hurd/boot/Makefile 2022-12-02 15:31:09.736000000 +0100 @@ -28,6 +28,6 @@ MIGSFLAGS=-imacros $(srcdir)/mig-mutate.h -DHURD_DEFAULT_PAYLOAD_TO_PORT=1 io-MIGSFLAGS=-DREPLY_PORTS -DHURD_DEFAULT_PAYLOAD_TO_PORT=1 HURDLIBS = store shouldbeinlibc ihash -LDLIBS += -lpthread +LDLIBS += -lpthread $(and $(HAVE_LIBZ),-lz) include ../Makeconf --- hurd/storeio/Makefile 2022-11-30 11:14:21.188000000 +0100 +++ hurd/storeio/Makefile 2022-11-30 12:27:44.268000000 +0100 @@ -24,6 +24,6 @@ OBJS = $(SRCS:.c=.o) HURDLIBS = trivfs pager fshelp iohelp store ports ihash shouldbeinlibc -LDLIBS = -lpthread +LDLIBS = -lpthread $(and $(HAVE_LIBZ),-lz) include ../Makeconf --- hurd/sutils/Makefile 2022-11-30 11:14:21.192000000 +0100 +++ hurd/sutils/Makefile 2022-12-02 15:51:54.064000000 +0100 @@ -29,6 +29,7 @@ OBJS = $(progs:=.o) HURDLIBS = store shouldbeinlibc +LDLIBS += $(and $(HAVE_LIBZ),-lz) include ../Makeconf --- hurd/tmpfs/Makefile 2022-11-30 11:14:21.192000000 +0100 +++ hurd/tmpfs/Makefile 2022-11-30 12:18:05.204000000 +0100 @@ -24,6 +24,6 @@ OBJS = $(SRCS:.c=.o) default_pagerUser.o # XXX The shared libdiskfs requires libstore even though we don't use it here. HURDLIBS = diskfs pager iohelp fshelp store ports ihash shouldbeinlibc -LDLIBS = -lpthread +LDLIBS = -lpthread $(and $(HAVE_LIBZ),-lz) include ../Makeconf --- hurd/utils/Makefile 2022-11-30 11:14:21.196000000 +0100 +++ hurd/utils/Makefile 2022-12-02 15:40:57.584000000 +0100 @@ -35,7 +35,7 @@ OBJS = $(filter-out %.sh,$(SRCS:.c=.o)) HURDLIBS = ps ihash store fshelp ports ftpconn shouldbeinlibc -LDLIBS += -lpthread +LDLIBS += -lpthread $(and $(HAVE_LIBZ),-lz) login-LDLIBS = -lutil $(and $(HAVE_LIBCRYPT),-lcrypt) addauth-LDLIBS = $(and $(HAVE_LIBCRYPT),-lcrypt) setauth-LDLIBS = $(and $(HAVE_LIBCRYPT),-lcrypt) --- hurd-git/mach-defpager/Makefile 2022-12-03 16:44:52.848000000 +0100 +++ hurd-git/mach-defpager/Makefile 2022-12-08 21:27:32.336000000 +0100 @@ -30,7 +30,7 @@ default_pager_replyUser.o HURDLIBS:= ihash shouldbeinlibc -LDLIBS:= -lpthread +LDLIBS:= -lpthread -lhurduser include ../Makeconf --- hurd/trans/Makefile 2019-12-18 19:29:43.940000000 +0100 +++ hurd/trans/Makefile 2019-12-22 00:37:06.656000000 +0100 @@ -62,7 +62,7 @@ ifeq ($(HAVE_LIBGCRYPT),yes) SRCS += random.c targets += random - random-LDLIBS = -lgcrypt + random-LDLIBS = -lgcrypt -lgpg-error random: startup_notifyServer.o mach_debugUser.o ../libtrivfs/libtrivfs.a endif