diff options
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile index 87c7038..0cd0774 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,4 +1,4 @@ -PKGDEPS := openssl +PKGDEPS := openssl zlib ifeq ($(shell pkg-config --print-errors --exists $(PKGDEPS) || echo fail),fail) $(error Build dependencies are not met) @@ -16,8 +16,10 @@ apk.static-objs := $(apk-objs) LDFLAGS_apk.static := -static LDFLAGS_apk += -nopie -LIBS += $(shell pkg-config --libs $(PKGDEPS)) -LIBS += /usr/lib/libz.a +CFLAGS += $(shell pkg-config --cflags $(PKGDEPS)) +LIBS := -Wl,--as-needed \ + $(shell pkg-config --libs $(PKGDEPS)) \ + -Wl,--no-as-needed install:: $(INSTALLDIR) $(DESTDIR)$(SBINDIR) |