xfsprogs: only absolute run-paths are allowed
Christoph Hellwig
hch at infradead.org
Wed Jul 21 12:13:19 CDT 2010
On Wed, Jul 21, 2010 at 04:31:01AM -0700, Christian Kujau wrote:
> Hi,
>
> I noticed that I can't use --prefix= any more for the ./configure script.
> Doing so makes libtool unhappy:
>
> $ make configure
> $ ./configure --prefix=/opt/xfsprogs
> $ make
> [...]
> libtool: link: only absolute run-paths are allowed
> make[2]: *** [libxfs.la] Error 1
The patch below should fix this issue. Note that you need to do a
make realclean
make configure
to regenerate the configure script first.
Index: xfsprogs-dev/configure.in
===================================================================
--- xfsprogs-dev.orig/configure.in 2010-07-21 19:03:45.225494681 +0200
+++ xfsprogs-dev/configure.in 2010-07-21 19:06:19.649494682 +0200
@@ -65,12 +65,17 @@ esac
case $exec_prefix:$prefix in
NONE:NONE | NONE:/usr | /usr:*)
root_sbindir='/sbin'
- AC_SUBST([root_sbindir])
-
root_libdir="/${base_libdir}"
- AC_SUBST([root_libdir])
+ ;;
+*)
+ root_sbindir="${sbindir}"
+ root_libdir="${libdir}"
+ ;;
esac
+AC_SUBST([root_sbindir])
+AC_SUBST([root_libdir])
+
# Find localized files
LOCALIZED_FILES=""
for lfile in `find ${srcdir} -name '*.c' -type f || exit 1`; do
More information about the xfs
mailing list