I keep forgetting: if the main program is built from a plain object,
then, in the testsuite, it should not be compiled with libtool: on AIX,
the default is disable-static so main.$OBJEXT will not exist; and I
don't want to link against main.lo.
Fixed as shown below.
Cheers,
Ralf
2007-02-06 Ralf Wildenhues <[EMAIL PROTECTED]>
* tests/lt_dlexit.at: Do not compile main object with libtool.
Index: tests/lt_dlexit.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/lt_dlexit.at,v
retrieving revision 1.2
diff -u -r1.2 lt_dlexit.at
--- tests/lt_dlexit.at 29 Jan 2007 21:59:58 -0000 1.2
+++ tests/lt_dlexit.at 6 Feb 2007 23:23:48 -0000
@@ -120,9 +120,10 @@
CPPFLAGS="$CPPFLAGS $LTDLINCL"
LDFLAGS="$LDFLAGS -no-undefined"
-for file in a1 b1 main; do
+for file in a1 b1; do
$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c $file.c
done
+$CC $CPPFLAGS $CFLAGS -c main.c
AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba1.la a1.lo \
-rpath /foo -avoid-version], [], [ignore], [ignore])
AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o modb1.la b1.lo \