From be9ca67885bccc82f07e097ec732860cf64ff53a Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Sun, 27 Dec 2020 20:44:22 +0300 Subject: bzip2: fix build --- core/bzip2/build | 6 +++--- 1 file 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" -- cgit v1.2.3