From 17ca3641eaad94f05d1c9f66593c67e425268050 Mon Sep 17 00:00:00 2001
From: Max Rees <maxcrees@me.com>
Date: Thu, 18 Jul 2019 05:56:15 -0400
Subject: user/argp-standalone: rebuild as PIC

---
 user/argp-standalone/APKBUILD | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/user/argp-standalone/APKBUILD b/user/argp-standalone/APKBUILD
index 846ed4c61..8bb36de5f 100644
--- a/user/argp-standalone/APKBUILD
+++ b/user/argp-standalone/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: A. Wilcox <awilfox@adelielinux.org>
 pkgname=argp-standalone
 pkgver=1.3
-pkgrel=4
+pkgrel=5
 pkgdesc="Hierarchial argument parsing library broken out from glibc"
 url="http://www.lysator.liu.se/~nisse/misc/"
 arch="all"
@@ -15,15 +15,13 @@ source="http://www.lysator.liu.se/~nisse/misc/$pkgname-$pkgver.tar.gz
 	gnu89-inline.patch
 	"
 
-builddir="$srcdir"/$pkgname-$pkgver
 prepare() {
 	default_prepare
-	cd "$builddir"
 	autoreconf -vif
 }
 
 build() {
-	cd "$builddir"
+	export CFLAGS="$CFLAGS -fPIC"
 	./configure \
 		--build=$CBUILD \
 		--host=$CHOST \
@@ -39,7 +37,6 @@ check() {
 }
 
 package() {
-	cd "$builddir"
 	install -D -m644 argp.h "$pkgdir"/usr/include/argp.h
 	install -D -m755 libargp.a "$pkgdir"/usr/lib/libargp.a
 }
-- 
cgit v1.2.3-70-g09d2