mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-27 13:11:46 +03:00
4defa401d3
Aside from a straightforward rebase, this contains an out-of-tree patch from MaskRay which adds the `-Bsymbolic-non-weak-functions` flag to ld.
30 lines
824 B
Bash
Executable File
30 lines
824 B
Bash
Executable File
#!/usr/bin/env -S bash ../.port_include.sh
|
|
port='binutils'
|
|
version='2.41'
|
|
useconfigure='true'
|
|
use_fresh_config_sub='true'
|
|
configopts=(
|
|
"--target=${SERENITY_ARCH}-pc-serenity"
|
|
"--with-sysroot=/"
|
|
"--with-build-sysroot=${SERENITY_INSTALL_ROOT}"
|
|
"--disable-werror"
|
|
"--disable-gdb"
|
|
"--disable-nls"
|
|
"--enable-libiberty"
|
|
)
|
|
files=(
|
|
"https://ftpmirror.gnu.org/gnu/binutils/binutils-${version}.tar.xz#ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450"
|
|
)
|
|
depends=(
|
|
'zlib'
|
|
'zstd'
|
|
)
|
|
|
|
export ac_cv_func_getrusage=no
|
|
|
|
install() {
|
|
run make DESTDIR=${SERENITY_INSTALL_ROOT} "${installopts[@]}" install
|
|
run_nocd cp ${workdir}/include/libiberty.h ${SERENITY_INSTALL_ROOT}/usr/local/include
|
|
run_nocd cp ${workdir}/libiberty/libiberty.a ${SERENITY_INSTALL_ROOT}/usr/local/lib
|
|
}
|