xfs
[Top] [All Lists]

Re: xfsprogs: only absolute run-paths are allowed

To: Christian Kujau <lists@xxxxxxxxxxxxxxx>
Subject: Re: xfsprogs: only absolute run-paths are allowed
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Wed, 21 Jul 2010 13:13:19 -0400
Cc: xfs@xxxxxxxxxxx
In-reply-to: <alpine.DEB.2.01.1007210408390.3964@xxxxxxxxxxxxxxxxxx>
References: <alpine.DEB.2.01.1007210408390.3964@xxxxxxxxxxxxxxxxxx>
User-agent: Mutt/1.5.20 (2009-08-17)
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

<Prev in Thread] Current Thread [Next in Thread>