summaryrefslogtreecommitdiff
path: root/fatfs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'fatfs/Makefile')
-rw-r--r--fatfs/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/fatfs/Makefile b/fatfs/Makefile
index 2555669c..6224b644 100644
--- a/fatfs/Makefile
+++ b/fatfs/Makefile
@@ -23,7 +23,7 @@ SRCS = inode.c main.c dir.c pager.c fat.c virt-inode.c node-create.c
OBJS = $(SRCS:.c=.o)
HURDLIBS = diskfs iohelp fshelp store pager ports ihash shouldbeinlibc
-OTHERLIBS = -lpthread -lbz2 -lz
+OTHERLIBS = -lpthread $(and $(HAVE_LIBBZ2),-lbz2) $(and $(HAVE_LIBZ),-lz)
include ../Makeconf