ladybird/Ports/tinycc/package.sh
Linus Groh 4c497228a9 Ports: Use SERENITY_ARCH in --target/--host
Recent ports already do this, let's update the others as well. One step
closer to multi-arch support for ports! :^)
2021-03-13 13:13:03 +01:00

16 lines
409 B
Bash
Executable file

#!/usr/bin/env -S bash ../.port_include.sh
port=tinycc
version=dev
files="https://github.com/TinyCC/tinycc/archive/dev.tar.gz tinycc-dev.tar.gz"
useconfigure=true
makeopts=tcc
configure() {
run ./configure \
--cross-prefix="${SERENITY_ARCH}-pc-serenity-" \
--cpu="${SERENITY_ARCH}" \
--triplet="${SERENITY_ARCH}-pc-serenity" \
--crtprefix=/usr/lib
}
export CONFIG_ldl=no