xref: /aosp_15_r20/external/pytorch/.ci/docker/common/install_patchelf.sh (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1#!/bin/bash
2# Script used only in CD pipeline
3
4set -ex
5
6# Pin the version to latest release 0.17.2, building newer commit starts
7# to fail on the current image
8git clone -b 0.17.2 --single-branch https://github.com/NixOS/patchelf
9cd patchelf
10sed -i 's/serial/parallel/g' configure.ac
11./bootstrap.sh
12./configure
13make
14make install
15cd ..
16rm -rf patchelf
17