aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-08-14 18:38:31 +0300
committerCem Keylan <cem@ckyln.com>2021-08-14 18:38:31 +0300
commitbe52bdbe7dbde3412e52a4a5ae6a0bfc8f7995aa (patch)
treeb9c8f7ad881a11a3ff640d9bd0167a5be6c69a0a /core
parent10ca7e88745e4ac447c33fc0dc1f6bfb36f5b4f2 (diff)
downloadrepository-be52bdbe7dbde3412e52a4a5ae6a0bfc8f7995aa.tar.gz
b3sum: actually fix i686 build
Diffstat (limited to 'core')
-rwxr-xr-xcore/b3sum/build16
1 files changed, 12 insertions, 4 deletions
diff --git a/core/b3sum/build b/core/b3sum/build
index c3c7e145..cc2b98a4 100755
--- a/core/b3sum/build
+++ b/core/b3sum/build
@@ -1,7 +1,15 @@
#!/bin/sh -e
-WITH_ASM=1
-case $3 in i*86) WITH_ASM=0; esac
+asm=1
+case $3 in i*86) asm=0; esac
-make LDFLAGS="$LDFLAGS -static" WITH_ASM="$WITH_ASM"
-make PREFIX=/usr DESTDIR="$1" install
+mk() {
+ make \
+ PREFIX=/usr \
+ LDFLAGS="$LDFLAGS -static" \
+ WITH_ASM="$asm" \
+ "$@"
+}
+
+mk
+mk DESTDIR="$1" install