diff options
author | Andrew Kaster <akaster@serenityos.org> | 2023-03-11 15:23:43 -0700 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-03-13 07:23:53 +0000 |
commit | e690b35fdc5ef4f42ab61a41da1866f926f985c2 (patch) | |
tree | 0649c92668c84e707f193f13a10c38742bfb81a5 /Ports/binutils | |
parent | 6ce7257ad7598bfab477e86ffe6ee8b2e0cb57b4 (diff) | |
download | serenity-e690b35fdc5ef4f42ab61a41da1866f926f985c2.zip |
Ports: Install libiberty from binutils port
Normally this is supposed to be installed from gdb or gcc. If a port
wants to link against libbfd though, we need to make sure libiberty is
actually available in the root filesytem without requiring the port to
depend on those larger packages.
Diffstat (limited to 'Ports/binutils')
-rwxr-xr-x | Ports/binutils/package.sh | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/Ports/binutils/package.sh b/Ports/binutils/package.sh index aa46713621..4c743121f5 100755 --- a/Ports/binutils/package.sh +++ b/Ports/binutils/package.sh @@ -1,10 +1,26 @@ #!/usr/bin/env -S bash ../.port_include.sh -port=binutils -version=2.39 -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") +port='binutils' +version='2.39' +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 binutils-${version}.tar.xz 645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00" auth_type="sha256" auth_opts=("--keyring" "./gnu-keyring.gpg" "binutils-${version}.tar.xz.sig") +depends=('zlib') + 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 +} |