+2008-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ Relax link-order2 test for systems with partial wrong order.
+ * tests/link-order2.at (Link order of deplibs.): On w32 (and
+ others, e.g., AIX), the wrongly linked executable picks up only
+ one instance of the bad function instead of two; relax the test
+ to accept this; we still require the right link order with the
+ correctly linked executable.
+ Reported by Roumen Petrov and others.
+
2008-11-23 Roumen Petrov <bugtrack@roumenpetrov.info>
Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
extern int b (void);
int main (void)
{
- return a () + b ();
+ return !(a () + b () == 0);
}
EOF
AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS $static -o wrong$EXEEXT main.$OBJEXT -la0 libb.la],
[], [ignore], [ignore])
if test $shared_fails,$static != yes,; then
- LT_AT_EXEC_CHECK([./wrong], [2])
+ LT_AT_EXEC_CHECK([./wrong], [1], [], [ignore], [|| (exit 1)])
fi
$LIBTOOL --mode=install cp liba1.la $libdir/liba1.la
$LIBTOOL --mode=clean rm -f liba1.la libb.la
LT_AT_EXEC_CHECK([$bindir/main])
if test $shared_fails,$static != yes,; then
- LT_AT_EXEC_CHECK([$bindir/wrong], [2])
+ LT_AT_EXEC_CHECK([$bindir/wrong], [1], [], [ignore], [|| (exit 1)])
fi
done
done