From d4b1477b4029bf5388d585e07be63c43a92918b2 Mon Sep 17 00:00:00 2001 From: ludwig Date: Fri, 23 Oct 2009 12:57:45 +0000 Subject: -lz must be specified after object files using it If it's specified first newer gcc resp the --as-needed option doesn't work. git-svn-id: svn://svn.icculus.org/quake3/trunk@1696 edf5b092-35ff-0310-97b2-ce42778d08ea --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 23b9949..d5fc8f7 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 -- cgit v1.2.3