-lz must be specified after object files using it

If it's specified first newer gcc resp the --as-needed option
doesn't work.
This commit is contained in:
Ludwig Nussel 2009-10-23 12:57:45 +00:00
parent 465c6101e0
commit 55943c51f3

View file

@ -880,7 +880,7 @@ endif
ifeq ($(USE_INTERNAL_ZLIB),1)
BASE_CFLAGS += -DNO_GZIP
else
LDFLAGS += -lz
LIBS += -lz
endif
ifdef DEFAULT_BASEDIR