aboutsummaryrefslogtreecommitdiff
path: root/core/sbase/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-06-08 22:50:57 +0300
committerCem Keylan <cem@ckyln.com>2020-06-08 22:50:57 +0300
commit4e6c18600653050dcf33e7b13acf9d2006ae9848 (patch)
tree3e3243b875b4ca2ae7ce6da569a0a882ce16348e /core/sbase/build
parentb768c38949cf232e472a2d818ab4a5e4eebc10d8 (diff)
downloadrepository-4e6c18600653050dcf33e7b13acf9d2006ae9848.tar.gz
sbase: link statically
Diffstat (limited to 'core/sbase/build')
-rwxr-xr-xcore/sbase/build8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/sbase/build b/core/sbase/build
index 0ed092ee..957e2a84 100755
--- a/core/sbase/build
+++ b/core/sbase/build
@@ -1,7 +1,7 @@
#!/bin/sh -e
-make LDFLAGS="$LDFLAGS -static" sbase-box
-make PREFIX=/usr DESTDIR="$1" sbase-box-install
+make CC="${CC:-cc} -static"
+make PREFIX=/usr DESTDIR="$1" install
-unlink "$1/usr/bin/tar"
-unlink "$1/usr/bin/sed"
+rm -f "$1/usr/bin/tar"
+rm -f "$1/usr/bin/sed"