Skip to content

Instantly share code, notes, and snippets.

View dakkshesh07's full-sized avatar
🫠
Touching grass

Dakkshesh dakkshesh07

🫠
Touching grass
View GitHub Profile
@dakkshesh07
dakkshesh07 / patch-for-old-glibc.sh
Last active March 19, 2024 15:55
A script for patching toolchains to resolve glibc requirement issues on distros with old glibc packages. ( DEPRECATED ) ( FUNCTIONALITY MOVED TO https://github.com/Neutron-Toolchains/antman )
#!/usr/bin/env bash
WORK_DIR=$(pwd)
cd "$HOME" || exit
echo "Downloading patchelf binary from ArchLinux repos"
mkdir -p patchelf-temp
#curl -L https://github.com/Jebaitedneko/docker/raw/ubuntu/patchelf
curl -L https://archlinux.org/packages/community/x86_64/patchelf/download | bsdtar -C patchelf-temp -xf -
mv "$HOME"/patchelf-temp/usr/bin/patchelf "$HOME"/
rm -rf "$HOME"/patchelf-temp