diff --git a/Makefile.rules b/Makefile.rules index adf5ef9f796..393ce48d07b 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -658,10 +658,10 @@ ifdef TOOLNAME # Handle compression libraries automatically ifeq ($(HAVE_BZIP2),1) -USEDLIBS += bz2.a +TOOLLINKOPTS += -lbz2 endif ifeq ($(HAVE_ZLIB),1) -USEDLIBS += z.a +TOOLLINKOPTS += -lz endif # TOOLEXENAME* - These compute the output filenames to generate... TOOLEXENAME_G := $(DESTTOOLDEBUG)/$(TOOLNAME)