builddefs.in

Christoph Hellwig hch at infradead.org
Mon Mar 22 10:33:25 CDT 2010


On Sun, Mar 21, 2010 at 03:13:50PM +0100, Lasse Kliemann wrote:
> Using 3.1.1.
> 
> When configured with a '--prefix', the build fails:
> 
> [...]
>     [CC]     linux.lo
>     [LD]     libxfs.la
> libtool: link: only absolute run-paths are allowed
> gmake[2]: *** [libxfs.la] Error 1
> gmake[1]: *** [libxfs] Error 2
> make: *** [default] Error 2
> 
> Calling 'make' in 'libxfs' reveals that '-rpath' option is used 
> with no argument. The attached patch remedies this. Indeed, with 
> this patch the correct argument is given to '-rpath', at least in 
> 'libxfs' subdirectory. 
> 
> It also remedies a similar problem when installing executables 
> into '.../sbin' directory.

> diff --git a/include/builddefs.in b/include/builddefs.in
> index cc75b5d..801b09e 100644
> --- a/include/builddefs.in
> +++ b/include/builddefs.in
> @@ -52,8 +52,8 @@ datarootdir	= @datarootdir@
>  top_builddir	= @top_builddir@
>  
>  PKG_SBIN_DIR	= @sbindir@
> -PKG_ROOT_SBIN_DIR = @root_sbindir@
> -PKG_ROOT_LIB_DIR= @root_libdir@@libdirsuffix@
> +PKG_ROOT_SBIN_DIR = @sbindir@
> +PKG_ROOT_LIB_DIR= @libdir@@libdirsuffix@

This is against the intent of the whole ROOT_LIB/SBIN_DIR
mechnism as it makes them equivalent to the normal ones.
It seems we have some problem generatin the correct @root_sbindir@ /
@root_libdir@ paths in the autoconf macros for your use case, I'll
look into that once I get a bit of time.




More information about the xfs mailing list