incl. riscv64 (lp64d) rpaths to libtool patch

[..]
+ /usr/lib/rpm/check-rpaths
[..]
ERROR   0020: file '/usr/lib64/libcc1.so.0.0.0' contains a runpath referencing '..' of an absolute path [/usr/lib/../lib64/lp64d]
ERROR   0020: file '/usr/lib64/libasan.so.8.0.0' contains a runpath referencing '..' of an absolute path [/usr/lib/../lib64/lp64d]
[..]
ERROR   0020: file '/usr/lib64/libubsan.so.1.0.0' contains a runpath referencing '..' of an absolute path [/usr/lib/../lib64/lp64d]
[..]
ERROR   0020: file '/usr/lib/gcc/riscv64-redhat-linux/12/plugin/libcc1plugin.so.0.0.0' contains a runpath referencing '..' of an absolute path [/usr/lib/../lib64/lp64d]
ERROR   0020: file '/usr/lib/gcc/riscv64-redhat-linux/12/plugin/libcp1plugin.so.0.0.0' contains a runpath referencing '..' of an absolute path [/usr/lib/../lib64/lp64d]
[..]

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2022-08-11 15:55:40 +03:00
parent 6e4093c32e
commit ec91f96550
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB

View File

@ -5,7 +5,7 @@ libtool sucks.
rpath="$finalize_rpath"
test "$mode" != relink && rpath="$compile_rpath$rpath"
for libdir in $rpath; do
+ case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac
+ case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64|/usr/lib/../lib64/lp64d) continue;; esac
if test -n "$hardcode_libdir_flag_spec"; then
if test -n "$hardcode_libdir_separator"; then
if test -z "$hardcode_libdirs"; then
@ -13,7 +13,7 @@ libtool sucks.
rpath=
hardcode_libdirs=
for libdir in $compile_rpath $finalize_rpath; do
+ case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac
+ case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64|/usr/lib/../lib64/lp64d) continue;; esac
if test -n "$hardcode_libdir_flag_spec"; then
if test -n "$hardcode_libdir_separator"; then
if test -z "$hardcode_libdirs"; then
@ -21,7 +21,7 @@ libtool sucks.
rpath=
hardcode_libdirs=
for libdir in $finalize_rpath; do
+ case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac
+ case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64|/usr/lib/../lib64/lp64d) continue;; esac
if test -n "$hardcode_libdir_flag_spec"; then
if test -n "$hardcode_libdir_separator"; then
if test -z "$hardcode_libdirs"; then