mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-02-09 07:57:32 +00:00
abuild-tar.static: fix undefined reference errors
Link against the same libs as abuild-tar and fix the order of the CC arguments.
This commit is contained in:
parent
2d2be1ca1b
commit
a54d3ba2ae
3
Makefile
3
Makefile
@ -47,6 +47,7 @@ OBJS-abuild-tar = abuild-tar.o
|
|||||||
CFLAGS-abuild-tar.o = $(SSL_CFLAGS)
|
CFLAGS-abuild-tar.o = $(SSL_CFLAGS)
|
||||||
LDFLAGS-abuild-tar = $(SSL_LDFLAGS)
|
LDFLAGS-abuild-tar = $(SSL_LDFLAGS)
|
||||||
LIBS-abuild-tar = $(SSL_LIBS)
|
LIBS-abuild-tar = $(SSL_LIBS)
|
||||||
|
LIBS-abuild-tar.static = $(LIBS-abuild-tar)
|
||||||
|
|
||||||
OBJS-abuild-gzsplit = abuild-gzsplit.o
|
OBJS-abuild-gzsplit = abuild-gzsplit.o
|
||||||
LDFLAGS-abuild-gzsplit = $(ZLIB_LIBS)
|
LDFLAGS-abuild-gzsplit = $(ZLIB_LIBS)
|
||||||
@ -86,7 +87,7 @@ abuild-gzsplit: abuild-gzsplit.o
|
|||||||
$(LINK)
|
$(LINK)
|
||||||
|
|
||||||
abuild-tar.static: abuild-tar.o
|
abuild-tar.static: abuild-tar.o
|
||||||
$(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS-$@) -o $@ -static $(LIBS-$@) $^
|
$(CC) -static $(CPPFLAGS) $(CFLAGS) $(CFLAGS-$@) $^ -o $@ $(LIBS-$@)
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@echo "$(P) makefile"
|
@echo "$(P) makefile"
|
||||||
|
Loading…
Reference in New Issue
Block a user