diff options
author | Oliver Smith <ollieparanoid@bitmessage.ch> | 2018-11-27 08:22:53 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-03-05 11:43:50 +0000 |
commit | a54d3ba2aed389fc856ce593316db1045a724163 (patch) | |
tree | d5f2c1daac3067d065f74fe0a9e72bd26fdf9121 /Makefile | |
parent | 2d2be1ca1b0a66a4875750696e6a03ae2e278366 (diff) | |
download | abuild-a54d3ba2aed389fc856ce593316db1045a724163.tar.gz abuild-a54d3ba2aed389fc856ce593316db1045a724163.tar.bz2 abuild-a54d3ba2aed389fc856ce593316db1045a724163.tar.xz abuild-a54d3ba2aed389fc856ce593316db1045a724163.zip |
abuild-tar.static: fix undefined reference errors
Link against the same libs as abuild-tar and fix the order of the CC
arguments.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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" |