[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Installing in a staging area

From: Sander Niemeijer
Subject: Re: Installing in a staging area
Date: Fri, 26 Sep 2003 09:34:05 +0200

From the Automake documentation:

"Automake generates support for the DESTDIR variable in all install rules. DESTDIR is used during the make install step to relocate install objects into a staging area. Each object and path is prefixed with the value of DESTDIR before being copied into the install area."

Why not use a 'make DESTDIR=/usr/local/staging/appname install'?

Your installables will be copied to a different location ('/usr/local/staging/appname/usr/local/lib' instead of '/usr/local/staging/appname/lib'), but I guess that will only require minor changes to any post-install script you might have.


On vrijdag, sep 26, 2003, at 08:59 Europe/Amsterdam, Schleicher Ralph (LLI) wrote:

Charles Gagnon writes:

I am having a hard time installing apps in a staging area. What I am
trying to do is this:

./configure --prefix=/usr/local
make prefix=/usr/local/staging/appname install

The purpose is to package everything in /usr/local/staging/appname
to be later installed in /usr/local on multiple systems. This use to
work but now, whenever I try I get:

libtool: install: error: cannot install `' to
a directory not ending in /usr/local/lib/

Hi Charles,

I encountered the same error message when building software within
my MinGW/MSYS cross-compilation environment.  I wasn't able to trace
down the problem in so I decided to hack libtool from
outside.  All problems went away after I've appended the following
commands to my build script:

        list=`awk '{print $4}' $files | grep '\.la$'`
        for i in $list ; do
sed -e "s|^dependency_libs=.*|dependency_libs=''|" -e "s|$destdir||g" $i > $i~
            if cmp $i $i~ > /dev/null 2>&1 ; then
                rm -f $i~
                rm -f $i
                mv $i~ $i

$files points to a file containing all the files installed by a
package.  $destdir points to the directory of the staging area.

I know that I loose all dependency information but I don't care
about it (they were wrong anyway).


Libtool mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]