From a54d3ba2aed389fc856ce593316db1045a724163 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Tue, 27 Nov 2018 08:22:53 +0100 Subject: abuild-tar.static: fix undefined reference errors Link against the same libs as abuild-tar and fix the order of the CC arguments. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9872587..a70d07f 100644 --- a/Makefile +++ b/Makefile @@ -47,6 +47,7 @@ OBJS-abuild-tar = abuild-tar.o CFLAGS-abuild-tar.o = $(SSL_CFLAGS) LDFLAGS-abuild-tar = $(SSL_LDFLAGS) LIBS-abuild-tar = $(SSL_LIBS) +LIBS-abuild-tar.static = $(LIBS-abuild-tar) OBJS-abuild-gzsplit = abuild-gzsplit.o LDFLAGS-abuild-gzsplit = $(ZLIB_LIBS) @@ -86,7 +87,7 @@ abuild-gzsplit: abuild-gzsplit.o $(LINK) abuild-tar.static: abuild-tar.o - $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS-$@) -o $@ -static $(LIBS-$@) $^ + $(CC) -static $(CPPFLAGS) $(CFLAGS) $(CFLAGS-$@) $^ -o $@ $(LIBS-$@) help: @echo "$(P) makefile" -- cgit v1.2.3