mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
30 lines
567 B
Bash
Executable File
30 lines
567 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. config/options
|
|
|
|
$SCRIPTS/build toolchain
|
|
$SCRIPTS/build zlib
|
|
|
|
export MAKEFLAGS=-j1
|
|
|
|
case $TARGET_ARCH in
|
|
i386)
|
|
TARGET=linux-elf
|
|
;;
|
|
x86_64)
|
|
TARGET=linux-x86_64
|
|
;;
|
|
powerpc)
|
|
TARGET=linux-ppc
|
|
;;
|
|
powerpc64)
|
|
TARGET=linux-ppc64
|
|
;;
|
|
esac
|
|
|
|
cd $PKG_BUILD
|
|
./Configure zlib-dynamic threads shared no-idea no-mdc2 no-rc5 no-krb5 --prefix=/usr $TARGET
|
|
make CC=$CC LD=$LD RANLIB=$RANLIB all build-shared
|
|
make CC=$CC LD=$LD RANLIB=$RANLIB do_linux-shared
|
|
make CC=$CC LD=$LD RANLIB=$RANLIB INSTALL_PREFIX=$SYSROOT_PREFIX install_sw
|