pmaports/main/abuild-sign-noinclude/0001-fix-abuild-tar.static-target.patch
Oliver Smith 54f977435d main/abuild-sign-noinclude: new aport (!81)
Builds abuild-sign and abuild-tar.static without any dependencies, so
they can be used outside of an Alpine Linux system. We need this for
build.postmarketos.org.
2018-12-13 09:13:07 +01:00

33 lines
923 B
Diff

From d4d3f5bcfcc9a11aadc3de3199dd681b195ec574 Mon Sep 17 00:00:00 2001
From: pmb-test <pmb-test@pmb-test>
Date: Thu, 22 Nov 2018 09:06:45 +0100
Subject: [PATCH 1/3] fix abuild-tar.static target
---
Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index b5997a4..d2445f3 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"
--
2.17.2