use our libtool to avoid problems with RPATH

This commit is contained in:
Miroslav Lichvar 2013-03-05 10:39:14 +01:00
parent 9c982214d0
commit fe7a01f5c7

View File

@ -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