From 78bcf949e785ca49928e9f2130ad67d1d7577dbd Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Sun, 27 Dec 2020 20:51:20 +0300 Subject: bzip2: fix cross build --- core/bzip2/build | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'core') diff --git a/core/bzip2/build b/core/bzip2/build index df18b2c2..4145c782 100755 --- a/core/bzip2/build +++ b/core/bzip2/build @@ -1,9 +1,14 @@ #!/bin/sh -e -[ "$CPT_CROSS_TRIPLET" ] && CC=$CPT_CROSS_TRIPLET-cc +[ "$CPT_CROSS_TRIPLET" ] && + CC=$CPT_CROSS_TRIPLET-cc AR=$CPT_CROSS_TRIPLET-ar RANLIB=$CPT_CROSS_TRIPLET-ranlib -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 +LD=${CC:=cc} +CC="$CC $CFLAGS -fPIC $LDFLAGS" + +make CC="$CC" LD="$LD" -f Makefile-libbz2_so +make CC="$CC" AR="${AR:-ar}" RANLIB="${RANLIB:-ranlib}" LD="$LD" \ + bzip2 bzip2recover libbz2.a for bin in bzip2 bzdiff bzgrep bzip2recover bzmore; do install -Dm755 "$bin" "$1/usr/bin/$bin" -- cgit v1.2.3