diff --git a/flac.spec b/flac.spec index 277a304..bf68d54 100644 --- a/flac.spec +++ b/flac.spec @@ -56,6 +56,9 @@ will use the Free Lossless Audio Codec. %setup -q -n %{name}-%{version}pre1 %build +# use our libtool to avoid problems with RPATH +./autogen.sh -V + # -funroll-loops makes encoding about 10% faster export CFLAGS="%{optflags} -funroll-loops" %configure \ @@ -63,10 +66,6 @@ export CFLAGS="%{optflags} -funroll-loops" --disable-silent-rules \ --disable-thorough-tests -# 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} %install