mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-01-24 14:24:59 +08:00
* tests/testsuite.at (LT_AT_NOINST_EXEC_CHECK): New macro, like
LT_AT_EXEC_CHECK but uses `$LIBTOOL --mode=execute' and allows to pass `-dlopen MODULE' arguments. * tests/lt_dlexit.at: Use it. Also, do not test `-dlpreopen', that currently needs library names to begin with `lib'.
This commit is contained in:
parent
90b9e52da6
commit
e3aa680f19
@ -1,3 +1,11 @@
|
||||
2007-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
* tests/testsuite.at (LT_AT_NOINST_EXEC_CHECK): New macro, like
|
||||
LT_AT_EXEC_CHECK but uses `$LIBTOOL --mode=execute' and allows
|
||||
to pass `-dlopen MODULE' arguments.
|
||||
* tests/lt_dlexit.at: Use it. Also, do not test `-dlpreopen',
|
||||
that currently needs library names to begin with `lib'.
|
||||
|
||||
2007-02-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
* tests/export.at: New test: expose -export-symbols failure
|
||||
|
@ -129,10 +129,11 @@ AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba1.la a1.lo \
|
||||
AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o modb1.la b1.lo \
|
||||
-rpath /foo -module -avoid-version liba1.la], [], [ignore], [ignore])
|
||||
|
||||
for dlopen in -dlopen -dlpreopen; do
|
||||
# TODO: test -dlpreopen
|
||||
for dlopen in -dlopen; do
|
||||
AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main main.$OBJEXT \
|
||||
$dlopen modb1.la $LIBLTDL], [], [ignore], [ignore])
|
||||
LT_AT_EXEC_CHECK([./main])
|
||||
LT_AT_NOINST_EXEC_CHECK([./main], [-dlopen modb1.la])
|
||||
done
|
||||
|
||||
AT_CLEANUP
|
||||
|
@ -165,6 +165,18 @@ m4_define([LT_AT_EXEC_CHECK],
|
||||
])
|
||||
|
||||
|
||||
# LT_AT_NOINST_EXEC_CHECK(EXECUTABLE, [NOINST-MODULES],
|
||||
# [STATUS = 0], [STDOUT], [STDERR])
|
||||
# ---------------------------------------------------------
|
||||
m4_define([LT_AT_NOINST_EXEC_CHECK],
|
||||
[AT_CHECK([$LIBTOOL --mode=execute $2 $1; lt_status=$?;
|
||||
if test $lt_status -eq 0; then :;
|
||||
elif test "X$host" != "X$build" && \
|
||||
{ test -x "$1" || test -x "$1"$EXEEXT; }
|
||||
then (exit 77); else (exit $lt_status); fi],[$3],[$4],[$5])
|
||||
])
|
||||
|
||||
|
||||
# LT_AT_TAG(TAG)
|
||||
# --------------
|
||||
m4_define([LT_AT_TAG],
|
||||
|
Loading…
Reference in New Issue
Block a user