From 0f37cb72b03f0addd65d4bab8dfe69c7a94a1454 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 18 Jul 2013 18:38:07 +0200 Subject: [PATCH] remove RPATH hardcoding --- libidn.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libidn.spec b/libidn.spec index 07d1b24..efa2f18 100644 --- a/libidn.spec +++ b/libidn.spec @@ -51,9 +51,16 @@ mv iconv.tmp doc/libidn.info %build %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 %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 %install