yggdrasil/ports/gnu-make/compile.sh

19 lines
386 B
Bash
Executable File

#!/bin/sh
source_dir=$2
build_dir=$3
mkdir -p $build_dir
cd $build_dir
if [ ! -f Makefile ]; then
CC="clang" CFLAGS="-DNO_ARCHIVES -fPIC -target $Y_TRIPLE --sysroot $Y_SYSROOT" \
$source_dir/make-${Y_PORT_VERSION}/configure \
--prefix=/usr \
--build=x86_64-pc-linux-gnu \
--host=x86_64-unknown-yggdrasil \
--disable-job-server
fi
make -j