From da5fecd04164579caa515da6222887bf6a807231 Mon Sep 17 00:00:00 2001 From: Michael Santos Date: Mon, 25 May 2015 10:20:04 -0400 Subject: [PATCH] makefile: static target, link against libresolv libresolv is required for base64 encoding. --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b1e877b..70d8ea1 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,16 @@ RM=rm all: - $(CC) -g -Wall $(CFLAGS) -o xmppipe src/*.c $(LDFLAGS) -lstrophe -luuid + $(CC) -g -Wall $(CFLAGS) -o xmppipe src/*.c $(LDFLAGS) -lstrophe -luuid -lresolv + +static: + $(CC) -g -Wall -o xmppipe src/*.c -Wl,--no-as-needed -ldl -lz \ + /usr/local/lib/libstrophe.a \ + /usr/lib/*/libresolv.a \ + /usr/lib/*/libssl.a \ + /usr/lib/*/libcrypto.a \ + /usr/lib/*/libexpat.a \ + /usr/lib/*/libuuid.a clean: -@$(RM) xmppipe