Files
build_toochain/linux_shell/3rd/patchelf
T
2026-07-07 15:23:39 +08:00

26 lines
606 B
Bash

#!/bin/bash
if ! type "include" > /dev/null 2>&1; then
include() {
. "$(cd "$(dirname "$1")" && pwd)/${2}";
};
fi
include "${BASH_SOURCE[0]}" ../base/export.bash
if ! pragma_once ${BASH_SOURCE[0]}; then return 0;
source ../base/export.bash
fi
packageName="patchelf"
version="0.15.0"
_src="${_src_}/${packageName}-${version}"
_install="${_install_}/${packageName}-${version}"
git clone --branch "${version}" https://github.com/NixOS/patchelf.git "${_src}"
cd "${_src}" || exit
./bootstrap.sh
./configure --prefix="${_install}"
make -j"$(nproc)"
sudo make install
sudo chmod -R 777 "${_install}"