remove RPATH hardcoding

epel9
Miroslav Lichvar 12 years ago
parent 7bafefd775
commit 0f37cb72b0

@ -51,9 +51,16 @@ mv iconv.tmp doc/libidn.info
%build %build
%configure --disable-csharp --disable-static --with-lispdir=%{_emacs_sitelispdir}/%{name} %configure --disable-csharp --disable-static --with-lispdir=%{_emacs_sitelispdir}/%{name}
# remove RPATH hardcoding
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} V=1 make %{?_smp_mflags} V=1
%check %check
# without RPATH this needs to be set to test the compiled library
export LD_LIBRARY_PATH=$(pwd)/lib/.libs
make %{?_smp_mflags} -C tests check VALGRIND=env make %{?_smp_mflags} -C tests check VALGRIND=env
%install %install

Loading…
Cancel
Save