# Why and how does aarch64 cpu wheel keep rpath instead of runpath?

**URL:** <https://dev-discuss.pytorch.org/t/why-and-how-does-aarch64-cpu-wheel-keep-rpath-instead-of-runpath/2923>\
**Category:** release/packaging\
**Created:** [April 18, 2025, 1:16am UTC](https://dev-discuss.pytorch.org/t/why-and-how-does-aarch64-cpu-wheel-keep-rpath-instead-of-runpath/2923 "2025-04-18T01:16:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dilililiwhy](https://yyz2.discourse-cdn.com/flex036/user_avatar/dev-discuss.pytorch.org/dilililiwhy/32/1657_2.png) [@dilililiwhy](https://dev-discuss.pytorch.org/u/dilililiwhy)\
**Post date:** [April 18, 2025, 1:16am UTC](https://dev-discuss.pytorch.org/t/why-and-how-does-aarch64-cpu-wheel-keep-rpath-instead-of-runpath/2923/1 "2025-04-18T01:16:04Z")

</div>

As no disable-new-dtags and patchelf command are found in the repo, how does aarch64 cpu wheel of keep rpath instead of runpath in default? Will the RPATH cause problem (as use of DT\_RPATH is deprecated)?

in nightly whl (20250417)  
**0x000000000000000f (RPATH) Library rpath: [$ORIGIN/lib:$ORIGIN/../torch.libs]**

build by source code  
**0x000000000000001d (RUNPATH) Library runpath: [$ORIGIN/lib]**

---

<div class="post-metadata">

**Author:** ![dilililiwhy](https://yyz2.discourse-cdn.com/flex036/user_avatar/dev-discuss.pytorch.org/dilililiwhy/32/1657_2.png) [@dilililiwhy](https://dev-discuss.pytorch.org/u/dilililiwhy)\
**Post date:** [April 18, 2025, 7:13am UTC](https://dev-discuss.pytorch.org/t/why-and-how-does-aarch64-cpu-wheel-keep-rpath-instead-of-runpath/2923/2 "2025-04-18T07:13:22Z")

</div>

It seems that RUNPATH is replaced by RPATH when auditwheel is adding $ORIGIN/../torch.libs to whl.
