Fix RPATH error

Error:
  "ERROR 0001: file '/usr/libexec/mysqld' contains a standard runpath '/usr/lib64' in [/usr/lib64]"

Caused by:
  https://fedoraproject.org/wiki/Changes/Broken_RPATH_will_fail_rpmbuild

More Info:
  https://docs.fedoraproject.org/en-US/packaging-guidelines/#_beware_of_rpath

Related: #1969430
This commit is contained in:
Michal Schorm 2021-06-02 12:27:04 +02:00
parent 3e416757d0
commit 91b42db5ef

View File

@ -491,7 +491,8 @@ cp %{SOURCE2} %{SOURCE3} %{SOURCE10} %{SOURCE11} %{SOURCE12} \
-DTMPDIR=/var/tmp \
-DWITH_MYSQLD_LDFLAGS="%{build_ldflags}" \
-DCMAKE_C_LINK_FLAGS="%{build_ldflags}" \
-DCMAKE_CXX_LINK_FLAGS="%{build_ldflags}"
-DCMAKE_CXX_LINK_FLAGS="%{build_ldflags}" \
-DCMAKE_SKIP_INSTALL_RPATH=YES
# Note: linking with GOLD disabled on Armv7hl because of https://bugs.mysql.com/bug.php?id=96698