Description: do not build with -rpath
 This patch removes -rpath autodetection
Author: Antoine Beaupré <anarcat@koumbit.org>

Origin: debian
Bug: http://jira.atheme.org/browse/CHARY-8
Forwarded: yes, http://jira.atheme.org/secure/attachment/10728/no-rpath
Last-Update: 2011-11-06

--- charybdis-3.3.0.orig/configure.ac
+++ charybdis-3.3.0/configure.ac
@@ -1013,17 +1013,6 @@ if test "$shared_modules" = yes; then
 	fi
 fi
 
-# rpath, for finding libratbox.so at run time
-hold_ldflags=$LDFLAGS
-AC_MSG_CHECKING(for the ld -rpath flag)
-LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}"
-AC_LINK_IFELSE(AC_LANG_PROGRAM([],[int i;]), found=yes, found=no)
-LDFLAGS=$hold_ldflags
-AC_MSG_RESULT($found)
-if test "$found" = yes; then
-	LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}"
-fi
-
 # This must be down here, or it will mess up checks like the ones
 # for -Wl,-export-dynamic
 # -- jilles
