mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
Ports: Add GNU binutils.
This commit is contained in:
parent
631894279b
commit
246dd93fe9
Notes:
sideshowbarker
2024-07-19 13:52:15 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/246dd93fe9e
1 changed files with 31 additions and 0 deletions
31
Ports/binutils/binutils.sh
Executable file
31
Ports/binutils/binutils.sh
Executable file
|
@ -0,0 +1,31 @@
|
|||
#!/bin/sh
|
||||
PORT_DIR=binutils
|
||||
function fetch() {
|
||||
# Canonical repository:
|
||||
# run_fetch_git "http://sourceware.org/git/binutils-gdb.git"
|
||||
|
||||
# Much faster mirror (though unofficial):
|
||||
run_fetch_git "https://github.com/bminor/binutils-gdb.git"
|
||||
|
||||
# FIXME: It would probably be better to build from a tarball.
|
||||
run_command git reset --hard binutils-2_32
|
||||
|
||||
# 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
|
Loading…
Add table
Reference in a new issue