aboutsummaryrefslogtreecommitdiff
path: root/core/bzip2
diff options
context:
space:
mode:
Diffstat (limited to 'core/bzip2')
-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"