diff --git a/Makefile b/Makefile index 897b4f8..06ab4c8 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ INSTALLDIR=$(INSTALL) -d CFLAGS=-g -D_GNU_SOURCE -Werror -Wall -Wstrict-prototypes -std=gnu99 \ -DAPK_VERSION=\"$(FULL_VERSION)\" LDFLAGS=-g -LIBS=-lpthread +LIBS=/usr/lib/libz.a ifeq ($(STATIC),yes) CFLAGS+=-fno-stack-protector diff --git a/src/Makefile b/src/Makefile index 62041c2..fbb3b5b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -32,7 +32,7 @@ ALL_OBJS = $(apk_OBJS) all: $(TARGETS) apk: $(apk_OBJS) - $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) /usr/lib/libz.a + $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) clean:: @rm -f $(TARGETS) $(ALL_OBJS) diff --git a/src/package.c b/src/package.c index 44cc387..165656d 100644 --- a/src/package.c +++ b/src/package.c @@ -17,7 +17,6 @@ #include #include #include -#include #include #include "apk_defines.h"