From 55943c51f3f7c6de345b03f70096ab5701d9c0fd Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Fri, 23 Oct 2009 12:57:45 +0000 Subject: [PATCH] -lz must be specified after object files using it If it's specified first newer gcc resp the --as-needed option doesn't work. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 23b99495..d5fc8f7f 100644 --- a/Makefile +++ b/Makefile @@ -880,7 +880,7 @@ endif ifeq ($(USE_INTERNAL_ZLIB),1) BASE_CFLAGS += -DNO_GZIP else - LDFLAGS += -lz + LIBS += -lz endif ifdef DEFAULT_BASEDIR