forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.sh
More file actions
executable file
·29 lines (27 loc) · 821 Bytes
/
package.sh
File metadata and controls
executable file
·29 lines (27 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env -S bash ../.port_include.sh
port='binutils'
version='2.44'
useconfigure='true'
use_fresh_config_sub='true'
configopts=(
"--target=${SERENITY_ARCH}-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#ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237"
)
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
}