1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 23:17:44 +00:00
serenity/Ports/binutils/binutils.sh
2019-05-30 13:59:24 +02:00

24 lines
632 B
Bash
Executable file

#!/bin/bash
PORT_DIR=binutils
function 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
}
function configure() {
run_configure_autotools \
--target=i686-pc-serenity \
--with-sysroot=/ \
--with-build-sysroot=$SERENITY_ROOT/Root \
--disable-werror \
--disable-gdb \
--disable-nls
}
function build() {
run_make
}
function install() {
run_make_install DESTDIR="$SERENITY_ROOT"/Root
}
source ../.port_include.sh