"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.
Regards, Sander
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 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 `libpixbufloader-wbmp.la' 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 ltmain.sh 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~
else
rm -f $i
mv $i~ $i
fi
done
$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).
-- Ralph
_______________________________________________ Libtool mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/libtool
_______________________________________________ Libtool mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/libtool
