aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-12-27 20:44:22 +0300
committerCem Keylan <cem@ckyln.com>2020-12-27 20:44:22 +0300
commitbe9ca67885bccc82f07e097ec732860cf64ff53a (patch)
tree731cf169e08e6b8b2559acb3ae32f21d0701e4e2
parentfddcdcd174e4c767f77e41affa37e2f989a9e44e (diff)
downloadrepository-be9ca67885bccc82f07e097ec732860cf64ff53a.tar.gz
bzip2: fix build
-rwxr-xr-xcore/bzip2/build6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/bzip2/build b/core/bzip2/build
index 209cce27..df18b2c2 100755
--- a/core/bzip2/build
+++ b/core/bzip2/build
@@ -1,9 +1,9 @@
#!/bin/sh -e
-[ "$CPT_CROSS_TARGET" ] && CC=$CPT_CROSS_TARGET-cc
+[ "$CPT_CROSS_TRIPLET" ] && CC=$CPT_CROSS_TRIPLET-cc
-make CC="${CC:-cc} $CFLAGS -fPIC $LDFLAGS" -f Makefile-libbz2_so
-make CC="${CC:-cc} $CFLAGS -fPIC $LDFLAGS -static" bzip2 bzip2recover libbz2.a
+make CC="${CC:=cc} $CFLAGS -fPIC $LDFLAGS" LD=$CC -f Makefile-libbz2_so
+make CC="$CC $CFLAGS -fPIC $LDFLAGS -static" LD=$CC bzip2 bzip2recover libbz2.a
for bin in bzip2 bzdiff bzgrep bzip2recover bzmore; do
install -Dm755 "$bin" "$1/usr/bin/$bin"