2
# $Id: fixrpath,v 1.1 2004/05/27 10:48:25 kobras Exp $
3
# libtool -rpath workaround based on a suggestion by Yann Dirson
6
# It is supposed to be inserted in configure.in, but I didn't want
7
# to re-run autoconf (since that bloats the Debian diff unnecessarily),
8
# so I just patch libtool after running configure. -- Richard Braakman
11
# The version of libtool included with LessTif unfortunately insists on
12
# linking with -rpath, i.e. hardwiring locations. This is not desirable.
14
# The dummy define is improbable enough not to conflict with anything; it is
15
# just here to fool libtool by making it believe it gave some useful info to
18
# This will also patch the generated libtool to explicitly
19
# link libraries against the libraries they depend on. (particularly libc)
21
for i in libtool libtool-disable-static; do
23
-e 's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/' \
24
-e '/^archive_cmds="/s/"$/ \$deplibs"/'