From 92da0e851083ec948b2c86f368c6ddeae2dec5f6 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Sun, 17 Feb 2019 21:00:47 +0000 Subject: [PATCH] make sign and fetchurl statically linked --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 4de8408..938d336 100644 --- a/Makefile +++ b/Makefile @@ -238,7 +238,7 @@ crypto/x25519.o: $(addprefix crypto/ref10/, $(X255OBJ)) ld -o $@ -r $+ crypto/%.o: CFLAGS+=-Icrypto -DTFM_DESC -DTFM_NO_ASM \ - -Itomsfastmath/src/headers \ + -Itomsfastmath/src/headers -static \ -Wno-pointer-sign -Wno-missing-braces -Ilibtomcrypt/src/headers # -DDEBUG @@ -770,7 +770,7 @@ rfc3986: rfc3986.c src/fetchurl.o: CFLAGS+=-DTFM_DESC -Isrc/headers -Itomsfastmath/src/headers -DARGTYPE=4 -DLTC_NO_ASM -DTFM_NO_ASM -Ilibtomcrypt/src/headers -DLTC_SOURCE -Icrypto -Wno-pointer-sign -DDEBUG zpm-fetchurl: ltc.o tls.o tfm.o src/fetchurl.o crypto/https.o crypto/rfc3986.o - $(CC) $(CFLAGS) -o $@ $+ + $(CC) $(CFLAGS) -static -o $@ $+ testddg: zpm-fetchurl ./zpm-fetchurl duckduckgo.com 443 / @@ -794,7 +794,7 @@ SIGNOBJ=$(SIGNSRC:.c=.o) $(SIGNOBJ): CFLAGS+=-Icrypto/libeddsa/lib zpm-sign: $(SIGNOBJ) - $(CC) $(CFLAGS) -o $@ $+ + $(CC) $(CFLAGS) -static -o $@ $+ clean: rm -f *.o sqlite/*.o lib/*.o $(LZMAOBJ) liblzma.a \ -- 2.40.0