Fix rpath problem.

This commit is contained in:
Gunnar Beutner 2013-10-02 13:28:02 +02:00
parent 89399dfce8
commit 32f46da135
2 changed files with 10 additions and 4 deletions

View File

@ -194,10 +194,20 @@ tools/Makefile
tools/i2enfeature tools/i2enfeature
tools/mkembedconfig/Makefile tools/mkembedconfig/Makefile
]) ])
AC_OUTPUT([ AC_OUTPUT([
etc/init.d/icinga2 etc/init.d/icinga2
]) ])
# Fix -rpath problem (https://wiki.debian.org/RpathIssue)
case ${host} in
*-linux-gnu)
test -f libtool.old || (mv libtool libtool.old && cp libtool.old libtool)
sed 's|^sys_lib_dlsearch_path_spec=.*|sys_lib_dlsearch_path_spec="/lib64 /lib /usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib"|g' libtool >libtool.new
mv libtool.new libtool
;;
esac
if ! test -z "$LTDLDEPS"; then if ! test -z "$LTDLDEPS"; then
ltdl_msg="bundled" ltdl_msg="bundled"
else else

View File

@ -71,10 +71,6 @@ IDOUtils schema >= 1.10
--with-icingacmd-user=$USER \ --with-icingacmd-user=$USER \
--with-icingacmd-group=$USER --with-icingacmd-group=$USER
# http://fedoraproject.org/wiki/RPath_Packaging_Draft
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} make %{?_smp_mflags}
%install %install