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
address@hidden
http://mail.gnu.org/mailman/listinfo/libtool