From 32f46da13558c811b0073b8648ef3ea931e49846 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 2 Oct 2013 13:28:02 +0200 Subject: [PATCH] Fix rpath problem. --- configure.ac | 10 ++++++++++ icinga2.spec.in | 4 ---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 325dd0e6b..fb3b28de3 100644 --- a/configure.ac +++ b/configure.ac @@ -194,10 +194,20 @@ tools/Makefile tools/i2enfeature tools/mkembedconfig/Makefile ]) + AC_OUTPUT([ 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 ltdl_msg="bundled" else diff --git a/icinga2.spec.in b/icinga2.spec.in index 79f072edd..a8136292c 100644 --- a/icinga2.spec.in +++ b/icinga2.spec.in @@ -71,10 +71,6 @@ IDOUtils schema >= 1.10 --with-icingacmd-user=$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} %install