mirror of https://github.com/Icinga/icinga2.git
Fix rpath problem.
This commit is contained in:
parent
89399dfce8
commit
32f46da135
10
configure.ac
10
configure.ac
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue