Last active
October 2, 2024 17:14
-
-
Save sebsto/219315a80333fb0661e03be2e0d00c80 to your computer and use it in GitHub Desktop.
Installl `ld.gold` on Amazon Linux 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
dnf install gmp-devel mpfr-devel texinfo bison git gcc-c++ -y | |
mkdir ld.gold && cd ld.gold | |
git clone --depth 1 git://sourceware.org/git/binutils-gdb.git binutils | |
mkdir build && cd build | |
../binutils/configure --enable-gold --enable-plugins --disable-werror | |
make all-gold | |
cd gold | |
make all-am | |
cd .. | |
cp gold/ld-new /usr/bin/ld.gold | |
cd ../.. | |
/usr/bin/ld.gold -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment