aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-07-03 13:54:25 +0300
committerCem Keylan <cem@ckyln.com>2020-07-03 13:54:25 +0300
commit11d7049e3b5793a080744331562ed310edc135d4 (patch)
tree3434201199a4e530a1f2ded198f969893fdc7cd8 /core
parentde1159bc45602cce9ae636bc10b431f4f793d7a4 (diff)
downloadrepository-11d7049e3b5793a080744331562ed310edc135d4.tar.gz
sbase: revert to sbase-box but properly link statically
Diffstat (limited to 'core')
-rwxr-xr-xcore/sbase/build7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/sbase/build b/core/sbase/build
index 957e2a84..fdc07891 100755
--- a/core/sbase/build
+++ b/core/sbase/build
@@ -1,7 +1,6 @@
#!/bin/sh -e
-make CC="${CC:-cc} -static"
-make PREFIX=/usr DESTDIR="$1" install
+make LDFLAGS="$LDFLAGS -static" PREFIX=/usr DESTDIR="$1" sbase-box-install
-rm -f "$1/usr/bin/tar"
-rm -f "$1/usr/bin/sed"
+unlink "$1/usr/bin/tar"
+unlink "$1/usr/bin/sed"