aboutsummaryrefslogtreecommitdiff
path: root/extra/libarchive/build
diff options
context:
space:
mode:
Diffstat (limited to 'extra/libarchive/build')
-rwxr-xr-xextra/libarchive/build5
1 files changed, 4 insertions, 1 deletions
diff --git a/extra/libarchive/build b/extra/libarchive/build
index 6e30984c..d069befd 100755
--- a/extra/libarchive/build
+++ b/extra/libarchive/build
@@ -7,7 +7,10 @@
--without-xml2 \
--without-expat
-make
+# Link binaries statically
+make bsdtar_LDFLAGS=-all-static \
+ bsdcat_LDFLAGS=-all-static \
+ bsdcpio_LDFLAGS=-all-static
make DESTDIR="$1" install
ln -s bsdcat "$1/usr/bin/cat"