From a4654e719c06ed3b66559d9de3ccd793909afc27 Mon Sep 17 00:00:00 2001 From: Ondrej Kozina Date: May 29 2018 13:41:53 +0000 Subject: Remove rpath before rebuilding for python3 api. --- 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