1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-15 09:27:35 +00:00
serenity/Ports/binutils/binutils.sh

24 lines
589 B
Bash
Executable file

#!/bin/sh
PORT_DIR=binutils
fetch() {
run_fetch_web "https://ftp.gnu.org/gnu/binutils/binutils-2.32.tar.xz"
# Add the big binutils patch (same one used by toolchain.)
run_patch $SERENITY_ROOT/Toolchain/Patches/binutils.patch -p1
}
configure() {
run_configure_autotools \
--target=i686-pc-serenity \
--with-sysroot=/ \
--with-build-sysroot=$SERENITY_ROOT/Root \
--disable-werror \
--disable-gdb \
--disable-nls
}
build() {
run_make
}
install() {
run_make_install DESTDIR="$SERENITY_ROOT"/Root
}
. ../.port_include.sh