Fix destdir tests in cross compile mode.

* tests/destdir.at (Simple DESTDIR install)
(DESTDIR with in-package deplibs): Use $EXEEXT throughout.
* THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
This commit is contained in:
Roumen Petrov 2008-11-11 22:24:25 +01:00 committed by Ralf Wildenhues
parent 984ff43d3d
commit 800959471b
3 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2008-11-11 Roumen Petrov <bugtrack@roumenpetrov.info> (tiny change)
Fix destdir tests in cross compile mode.
* tests/destdir.at (Simple DESTDIR install)
(DESTDIR with in-package deplibs): Use $EXEEXT throughout.
* THANKS: Update.
2008-11-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Simplify cwrapper handling a bit.

1
THANKS
View File

@ -128,6 +128,7 @@
Robert Ögren lists@roboros.com
Roberto Bagnara bagnara@cs.unipr.it
Roland Mainz roland.mainz@nrubsig.org
Roumen Petrov bugtrack@roumenpetrov.info
Sam Thursfield ssssam@gmail.com
Sebastian Wilhelmi wilhelmi@ira.uka.de
Simon Josefsson jas@extundo.com

View File

@ -56,7 +56,7 @@ $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a.c
$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la a.lo -rpath $libdir
echo 'extern int a(); int main() { return a(); }' > m.c
$CC $CPPFLAGS $CFLAGS -c m.c
$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m m.$OBJEXT liba.la
$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m$EXEEXT m.$OBJEXT liba.la
mkdir $DESTDIR$libdir $DESTDIR$bindir
AT_CHECK([$LIBTOOL --mode=install cp liba.la $DESTDIR$libdir/liba.la],
[], [ignore], [ignore])
@ -67,7 +67,7 @@ LT_AT_MVDIR(["$DESTDIR$libdir"], ["$libdir"])
LT_AT_MVDIR(["$DESTDIR$bindir"], ["$bindir"])
# We ignore failure on purpose here: we may not be root.
AT_CHECK([$LIBTOOL --mode=finish $libdir], [ignore], [ignore], [ignore])
LT_AT_EXEC_CHECK([$bindir/m])
LT_AT_EXEC_CHECK([$bindir/m$EXEEXT])
AT_CLEANUP
@ -91,7 +91,7 @@ $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a.c
$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la a.lo -rpath $libdir liba1dep.la liba2dep.la
echo 'extern int a(); int main() { return a(); }' > m.c
$CC $CPPFLAGS $CFLAGS -c m.c
$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m m.$OBJEXT liba.la
$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m$EXEEXT m.$OBJEXT liba.la
mkdir $DESTDIR$libdir $DESTDIR${libdir}2 $DESTDIR$bindir
AT_CHECK([$LIBTOOL --mode=install cp liba1dep.la $DESTDIR$libdir/liba1dep.la],
[], [ignore], [ignore])
@ -124,7 +124,7 @@ for lib in a1dep a2dep a; do
$LIBTOOL --mode=install cp lib$lib.la $DESTDIR$ldir/lib$lib.la
done
LT_AT_EXEC_CHECK([$bindir/m])
LT_AT_EXEC_CHECK([$bindir/m$EXEEXT])
# TODO: make this more portable:
if test "$OBJDUMP" != false && ($OBJDUMP -p $bindir/m$EXEEXT) >/dev/null 2>&1; then