diff --git a/cryptsetup.spec b/cryptsetup.spec index 2bc02d4..0d2ea1a 100644 --- a/cryptsetup.spec +++ b/cryptsetup.spec @@ -152,6 +152,9 @@ make %{?_smp_mflags} %if %{python3_enable} pushd %{py3dir} %configure --enable-python --with-python_version=3 --enable-fips --enable-pwquality --enable-libargon2 +# remove rpath +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool make %{?_smp_mflags} popd %endif