diff options
Diffstat (limited to 'core/bzip2/build')
-rwxr-xr-x | core/bzip2/build | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/core/bzip2/build b/core/bzip2/build index ac1055b2..4145c782 100755 --- a/core/bzip2/build +++ b/core/bzip2/build @@ -1,10 +1,17 @@ #!/bin/sh -e -make CC="${CC:-cc} $CFLAGS -fPIC $LDFLAGS" -f Makefile-libbz2_so -make CC="${CC:-cc} $CFLAGS -fPIC $LDFLAGS" bzip2recover libbz2.a +[ "$CPT_CROSS_TRIPLET" ] && + CC=$CPT_CROSS_TRIPLET-cc AR=$CPT_CROSS_TRIPLET-ar RANLIB=$CPT_CROSS_TRIPLET-ranlib -for bin in bzip2-shared bzdiff bzgrep bzip2recover bzmore; do - install -Dm755 "$bin" "$1/usr/bin/${bin%%-shared}" +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" done install -Dm755 libbz2.so.1.0.8 "$1/usr/lib/libbz2.so.1.0.8" |