* Ralf Wildenhues wrote on Sun, Nov 23, 2008 at 10:41:46PM CET: > > To fix the loose end wrt. the exec checks, there was some exit status > normalization needed here. I think this patch should be sufficient, > once the $EXEEXT patch is in (comes next).
Here it is. I went over tests/*.at and hopefully found all instances needing $EXEEXT now. Pushed. Review appreciated. Cheers, Ralf 2008-11-23 Roumen Petrov <[EMAIL PROTECTED]> Ralf Wildenhues <[EMAIL PROTECTED]> Add $EXEEXT to all linked programs in the new testsuite. * tests/convenience.at, tests/ctor.at, tests/darwin.at, tests/deplibs-ident.at, tests/duplicate_conv.at, tests/duplicate_deps.at, tests/duplicate_members.at, tests/export.at, tests/fail.at, tests/indirect_deps.at, tests/inherited_flags.at, tests/link-order.at, tests/link-order2.at, tests/lt_dladvise.at, tests/lt_dlexit.at, tests/need_lib_prefix.at, tests/runpath-in-lalib.at, tests/search-path.at, tests/shlibpath.at, tests/static.at, tests/stresstest.at, tests/template.at, tests/testsuite.at: Use $EXEEXT throughout, except in Makefile.am snippets where automake takes care of it, and in testsuite macros that take care of the extension. Reports by Roumen Petrov and Alon Bar-Lev. diff --git a/tests/convenience.at b/tests/convenience.at index 7834bff..995c8ff 100644 --- a/tests/convenience.at +++ b/tests/convenience.at @@ -56,9 +56,9 @@ AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba123.la a3.lo liba1.la conv= for i in 1 2 3; do conv=$conv$i - AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -static -o main_static main$i.lo liba$conv.la], + AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -static -o main_static$EXEEXT main$i.lo liba$conv.la], [0],[ignore],[ignore]) - AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main main$i.lo liba$conv.la], + AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main$i.lo liba$conv.la], [0],[ignore],[ignore]) LT_AT_EXEC_CHECK([./main_static]) LT_AT_EXEC_CHECK([./main]) @@ -96,9 +96,9 @@ AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o liba123.la a conv= for i in 1 2 3; do conv=$conv$i - AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -static -o main_static main$i.lo liba$conv.la], + AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -static -o main_static$EXEEXT main$i.lo liba$conv.la], [0],[ignore],[ignore]) - AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o main main$i.lo liba$conv.la], + AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o main$EXEEXT main$i.lo liba$conv.la], [0],[ignore],[ignore]) LT_AT_EXEC_CHECK([./main_static]) LT_AT_EXEC_CHECK([./main]) @@ -156,9 +156,9 @@ AT_CHECK([$LIBTOOL --tag=F77 --mode=link $F77 $FFLAGS $LDFLAGS -o liba123.la a3. conv= for i in 1 2 3; do conv=$conv$i - AT_CHECK([$LIBTOOL --tag=F77 --mode=link $F77 $FFLAGS $LDFLAGS -static -o main_static main$i.lo liba$conv.la], + AT_CHECK([$LIBTOOL --tag=F77 --mode=link $F77 $FFLAGS $LDFLAGS -static -o main_static$EXEEXT main$i.lo liba$conv.la], [0],[ignore],[ignore]) - AT_CHECK([$LIBTOOL --tag=F77 --mode=link $F77 $FFLAGS $LDFLAGS -o main main$i.lo liba$conv.la], + AT_CHECK([$LIBTOOL --tag=F77 --mode=link $F77 $FFLAGS $LDFLAGS -o main$EXEEXT main$i.lo liba$conv.la], [0],[ignore],[ignore]) LT_AT_EXEC_CHECK([./main_static]) LT_AT_EXEC_CHECK([./main]) @@ -216,9 +216,9 @@ AT_CHECK([$LIBTOOL --tag=FC --mode=link $FC $FCFLAGS $LDFLAGS -o liba123.la a3.l conv= for i in 1 2 3; do conv=$conv$i - AT_CHECK([$LIBTOOL --tag=FC --mode=link $FC $FCFLAGS $LDFLAGS -static -o main_static main$i.lo liba$conv.la], + AT_CHECK([$LIBTOOL --tag=FC --mode=link $FC $FCFLAGS $LDFLAGS -static -o main_static$EXEEXT main$i.lo liba$conv.la], [0],[ignore],[ignore]) - AT_CHECK([$LIBTOOL --tag=FC --mode=link $FC $FCFLAGS $LDFLAGS -o main main$i.lo liba$conv.la], + AT_CHECK([$LIBTOOL --tag=FC --mode=link $FC $FCFLAGS $LDFLAGS -o main$EXEEXT main$i.lo liba$conv.la], [0],[ignore],[ignore]) LT_AT_EXEC_CHECK([./main_static]) LT_AT_EXEC_CHECK([./main]) @@ -280,9 +280,9 @@ AT_CHECK([$LIBTOOL --tag=GCJ --mode=link $GCJ $GCJFLAGS $LDFLAGS -o liba123.la A conv= for i in 1 2 3; do conv=$conv$i - AT_CHECK([$LIBTOOL --tag=GCJ --mode=link $GCJ $GCJFLAGS $LDFLAGS -static --main=foo$i -o main_static foo$i.lo liba$conv.la], + AT_CHECK([$LIBTOOL --tag=GCJ --mode=link $GCJ $GCJFLAGS $LDFLAGS -static --main=foo$i -o main_static$EXEEXT foo$i.lo liba$conv.la], [0],[ignore],[ignore]) - AT_CHECK([$LIBTOOL --tag=GCJ --mode=link $GCJ $GCJFLAGS $LDFLAGS --main=foo$i -o main foo$i.lo liba$conv.la], + AT_CHECK([$LIBTOOL --tag=GCJ --mode=link $GCJ $GCJFLAGS $LDFLAGS --main=foo$i -o main$EXEEXT foo$i.lo liba$conv.la], [0],[ignore],[ignore]) LT_AT_EXEC_CHECK([./main_static]) LT_AT_EXEC_CHECK([./main]) diff --git a/tests/ctor.at b/tests/ctor.at index d5f1e08..29ec39a 100644 --- a/tests/ctor.at +++ b/tests/ctor.at @@ -60,7 +60,7 @@ AT_CHECK([$LIBTOOL --tag=CXX --mode=compile $CXX $CPPFLAGS $CXXFLAGS \ AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS \ libctor.lo -o libctor.la -rpath /none], [0], [ignore], [ignore]) AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS \ - main.lo libctor.la -o main], [0], [ignore], [ignore]) + main.lo libctor.la -o main$EXEEXT], [0], [ignore], [ignore]) LT_AT_EXEC_CHECK([./main], [0]) diff --git a/tests/darwin.at b/tests/darwin.at index 2ca5649..6284116 100644 --- a/tests/darwin.at +++ b/tests/darwin.at @@ -94,7 +94,7 @@ AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC -o libbar.la $CPPFLAGS $CFLAGS $LDF AT_CHECK([$LIBTOOL --mode=compile --tag=CC $CC -c -o main.lo $CPPFLAGS $CFLAGS -arch ppc -arch i386 main.c],[0],[ignore],[ignore]) -AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC -o main $CPPFLAGS $CFLAGS $LDFLAGS -arch ppc -arch i386 main.lo libbar.la],[0],[ignore],[ignore]) +AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC -o main$EXEEXT $CPPFLAGS $CFLAGS $LDFLAGS -arch ppc -arch i386 main.lo libbar.la],[0],[ignore],[ignore]) PATH=$save_PATH AT_CLEANUP diff --git a/tests/deplibs-ident.at b/tests/deplibs-ident.at index f432785..5758311 100644 --- a/tests/deplibs-ident.at +++ b/tests/deplibs-ident.at @@ -1,6 +1,6 @@ # deplibs-ident.at -- detecting identical deplibs -*- Autotest -*- -# Copyright (C) 2005, 2007 Free Software Foundation, Inc. +# Copyright (C) 2005, 2007, 2008 Free Software Foundation, Inc. # Written by Ralf Wildenhues, 2005 # # This file is part of GNU Libtool. @@ -63,7 +63,7 @@ int main() { return a1() + a2() + a3() + c(); } ( cd a/b AT_CHECK([$CC $CFLAGS -c b.c],[0],[ignore],[ignore]) - AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o b b.$OBJEXT ../liba1.la ../liba2.la ../liba3.la ../../c/libcee.la -rpath /nowhere], + AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o b$EXEEXT b.$OBJEXT ../liba1.la ../liba2.la ../liba3.la ../../c/libcee.la -rpath /nowhere], [0],[stdout],[ignore]) AT_CHECK([$EGREP 'cee.*cee' stdout], 1, [ignore], [ignore]) AT_XFAIL_IF([case $host in diff --git a/tests/duplicate_conv.at b/tests/duplicate_conv.at index ac5643b..83d5144 100644 --- a/tests/duplicate_conv.at +++ b/tests/duplicate_conv.at @@ -1,6 +1,6 @@ # duplicate_conv.at -- duplicate convenience archive names -*- Autotest -*- -# Copyright (C) 2006 Free Software Foundation, Inc. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc. # Written by Ralf Wildenhues, 2006 # # This file is part of GNU Libtool. @@ -50,7 +50,7 @@ $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o b/liba.la b/a.lo b/b.lo # Fold into convenience archive. AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libcee.la c.lo a/liba.la b/liba.la], [0], [ignore], [ignore]) -AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main main.$OBJEXT ./libcee.la], +AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT ./libcee.la], [0], [ignore], [ignore]) LT_AT_EXEC_CHECK([./main],[0],[ignore],[ignore]) $LIBTOOL --mode=clean rm -f libcee.la @@ -62,7 +62,7 @@ $LIBTOOL --mode=clean rm -f libcee.la # Fold into static library. AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -rpath /foo -static -o libcee.la c.lo a/liba.la b/liba.la], [0], [ignore], [ignore]) -AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main main.$OBJEXT ./libcee.la], +AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT ./libcee.la], [0], [ignore], [ignore]) LT_AT_EXEC_CHECK([./main],[0],[ignore],[ignore]) $LIBTOOL --mode=clean rm -f libcee.la @@ -70,7 +70,7 @@ $LIBTOOL --mode=clean rm -f libcee.la # Fold into library. AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -rpath /foo -o libcee.la c.lo a/liba.la b/liba.la], [0], [ignore], [ignore]) -AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main main.$OBJEXT ./libcee.la], +AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT ./libcee.la], [0], [ignore], [ignore]) LT_AT_EXEC_CHECK([./main],[0],[ignore],[ignore]) $LIBTOOL --mode=clean rm -f libcee.la @@ -78,7 +78,7 @@ $LIBTOOL --mode=clean rm -f libcee.la # Test whether this works with reloadable objects as well. AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o cee.$OBJEXT c.lo a/liba.la b/liba.la], [0], [ignore], [ignore]) -AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main main.$OBJEXT cee.$OBJEXT], +AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT cee.$OBJEXT], [0], [ignore], [ignore]) LT_AT_EXEC_CHECK([./main],[0],[ignore],[ignore]) diff --git a/tests/duplicate_deps.at b/tests/duplicate_deps.at index 0c4ce6b..2178440 100644 --- a/tests/duplicate_deps.at +++ b/tests/duplicate_deps.at @@ -1,6 +1,6 @@ # duplicate_deps.at -- preserve duplicate convenience deps -*- Autotest -*- -# Copyright (C) 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2006, 2007, 2008 Free Software Foundation, Inc. # Written by Ralf Wildenhues, 2006 $ # This file is part of GNU Libtool. @@ -56,7 +56,7 @@ $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o liba.la a1.lo a2.lo # libb.a as well, possibly renamed.) $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libb.la b1.lo liba.la AT_CHECK([$LIBTOOL --mode=link --tag=CC \ - $CC $CFLAGS $LDFLAGS -o main main.$OBJEXT liba.la libb.la], + $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT liba.la libb.la], [0], [ignore], [ignore]) LT_AT_EXEC_CHECK([./main]) @@ -64,13 +64,13 @@ LT_AT_EXEC_CHECK([./main]) $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libb.la b1.lo # Some systems find all symbols anyway; skip this test on such systems. AT_CHECK([$LIBTOOL --mode=link --tag=CC \ - $CC $CFLAGS $LDFLAGS -o main main.$OBJEXT liba.la libb.la liba.la \ + $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT liba.la libb.la liba.la \ && exit 77], [1], [ignore], [ignore]) # Other systems need special treatment, which currently fails. AT_XFAIL_IF([:]) AT_CHECK([$LIBTOOL --mode=link --preserve-dup-deps --tag=CC \ - $CC $CFLAGS $LDFLAGS -o main main.$OBJEXT liba.la libb.la liba.la], + $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT liba.la libb.la liba.la], [0], [ignore], [ignore]) AT_CLEANUP diff --git a/tests/duplicate_members.at b/tests/duplicate_members.at index 29b776a..afa9d20 100755 --- a/tests/duplicate_members.at +++ b/tests/duplicate_members.at @@ -1,6 +1,6 @@ # duplicate_members.at -- duplicate members in archive tests -*- Autotest -*- -# Copyright (C) 2005, 2007 Free Software Foundation, Inc. +# Copyright (C) 2005, 2007, 2008 Free Software Foundation, Inc. # Written by Alexandre Oliva & Peter O'Gorman, 2005 # # This file is part of GNU Libtool. @@ -68,7 +68,7 @@ $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c -o bar.lo bar.c $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libbar.la bar.lo libconv.la -rpath /notexist $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c -o main.lo main.c -$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o main main.lo ./libbar.la +$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.lo ./libbar.la LT_AT_EXEC_CHECK([./main],[0],[ignore],[ignore]) diff --git a/tests/export.at b/tests/export.at index 73fb45f..a330d40 100644 --- a/tests/export.at +++ b/tests/export.at @@ -1,6 +1,6 @@ # export.at -- test symbol exports -*- Autotest -*- -# Copyright (C) 2007 Free Software Foundation, Inc. +# Copyright (C) 2007, 2008 Free Software Foundation, Inc. # Written by Ralf Wildenhues, 2007 # # This file is part of GNU Libtool. @@ -154,11 +154,11 @@ do # case 1: shared library built from object. LT_AT_CHECK([eval '$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la a.lo \ -rpath $libdir' $exportsyms], [], [ignore], [ignore]) - AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main main.$OBJEXT liba.la], + AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT liba.la], [], [ignore], [ignore]) LT_AT_EXEC_CHECK([./main]) if test -n "$exportsyms" && $can_hide; then - AT_CHECK([if $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o broken broken.$OBJEXT liba.la + AT_CHECK([if $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o broken$EXEEXT broken.$OBJEXT liba.la then (exit 1); else :; fi], [], [ignore], [ignore]) fi @@ -167,11 +167,11 @@ do [], [ignore], [ignore]) LT_AT_CHECK([eval '$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la libconv.la \ -rpath $libdir' $exportsyms], [], [ignore], [ignore]) - AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main main.$OBJEXT liba.la], + AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT liba.la], [], [ignore], [ignore]) LT_AT_EXEC_CHECK([./main]) if test -n "$exportsyms" && $can_hide; then - AT_CHECK([if $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o broken broken.$OBJEXT liba.la + AT_CHECK([if $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o broken$EXEEXT broken.$OBJEXT liba.la then (exit 1); else :; fi], [], [ignore], [ignore]) fi done diff --git a/tests/fail.at b/tests/fail.at index fe38ddc..088ad9e 100644 --- a/tests/fail.at +++ b/tests/fail.at @@ -67,9 +67,9 @@ esac # program creation failure echo 'int not_main(void) { return 0; }' > a.c $CC $CPPFLAGS $CFLAGS -c a.c -FAIL_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o a a.$OBJEXT]) +FAIL_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o a$EXEEXT a.$OBJEXT]) AT_CHECK([{ test -f a && $test_x a; } || { test -f a$EXEEXT && $test_x a$EXEEXT; }], [1]) -FAIL_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o a a.$OBJEXT -static]) +FAIL_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o a$EXEEXT a.$OBJEXT -static]) AT_CHECK([{ test -f a && $test_x a; } || { test -f a$EXEEXT && $test_x a$EXEEXT; }], [1]) # shared library creation failure @@ -97,8 +97,8 @@ echo 'int main () { return 0; }' > d.c echo 'int foo () { return 0; }' > space-after-L.c $CC $CPPFLAGS $CFLAGS -c d.c $CC $CPPFLAGS $CFLAGS -c space-after-L.c -FAIL_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -L space-after-L.$OBJEXT -o d d.$OBJEXT]) -FAIL_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o d d.$OBJEXT -L]) +FAIL_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -L space-after-L.$OBJEXT -o d$EXEEXT d.$OBJEXT]) +FAIL_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o d$EXEEXT d.$OBJEXT -L]) m4_popdef([FAIL_CHECK]) AT_CLEANUP diff --git a/tests/indirect_deps.at b/tests/indirect_deps.at index 33d2586..7665dc5 100644 --- a/tests/indirect_deps.at +++ b/tests/indirect_deps.at @@ -1,6 +1,6 @@ # indirect_deps.at -- support for link_all_deplibs=no -*- Autotest -*- -# Copyright (C) 2007 Free Software Foundation, Inc. +# Copyright (C) 2007, 2008 Free Software Foundation, Inc. # Written by Ralf Wildenhues, 2007. # # This file is part of GNU Libtool. @@ -57,9 +57,9 @@ $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libconv.la c.lo libb.la $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libd.la libconv.la -rpath /nowhere for st in '' -static; do - AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS $st -o m1 m.$OBJEXT libd.la], + AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS $st -o m1$EXEEXT m.$OBJEXT libd.la], [], [ignore], [ignore]) - AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS $st -o m2 m.$OBJEXT libconv.la], + AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS $st -o m2$EXEEXT m.$OBJEXT libconv.la], [], [ignore], [ignore]) LT_AT_EXEC_CHECK([./m1]) LT_AT_EXEC_CHECK([./m2]) @@ -106,9 +106,9 @@ for st in '' -static; do $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o b/libb.la b.lo a/liba.la -rpath /nowhereb $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o c/libcee.la c.lo b/libb.la -rpath /nowherec - AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS $st -o m1 m1.$OBJEXT b/libb.la], + AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS $st -o m1$EXEEXT m1.$OBJEXT b/libb.la], [], [ignore], [ignore]) - AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS $st -o m2 m2.$OBJEXT c/libcee.la], + AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS $st -o m2$EXEEXT m2.$OBJEXT c/libcee.la], [], [ignore], [ignore]) LT_AT_EXEC_CHECK([./m1]) LT_AT_EXEC_CHECK([./m2]) diff --git a/tests/inherited_flags.at b/tests/inherited_flags.at index 1efdf16..65c0c3e 100644 --- a/tests/inherited_flags.at +++ b/tests/inherited_flags.at @@ -82,7 +82,7 @@ AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libbaz.la baz.lo AT_CHECK([$LIBTOOL --features | grep 'disable shared libraries' && (exit 77)], [1], [ignore]) AT_CHECK([grep 'lt_[[ui]]nlikely_existing_lib.*lt_[[ui]]nlikely_existing_lib' stdout], [0],[ignore],[ignore]) -AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o main main.lo -no-undefined -rpath /nonexistent ./libfoo.la ./libbar.la], +AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.lo -no-undefined -rpath /nonexistent ./libfoo.la ./libbar.la], [ignore],[stdout],[ignore]) AT_CHECK([grep 'lt_[[ui]]nlikely_existing_lib.*lt_[[ui]]nlikely_existing_lib' stdout], [0],[ignore],[ignore]) @@ -94,7 +94,7 @@ AT_CHECK([grep 'lt_inlikely_existing_lib.*lt_inlikely_existing_lib' stdout], [1],[ignore],[ignore]) AT_CHECK([grep 'lt_unlikely_existing_lib.*lt_unlikely_existing_lib' stdout], [1],[ignore],[ignore]) -AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o main main.lo -no-undefined -rpath /nonexistent ./libfoo.la ./libbar.la ./libboth.la], +AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.lo -no-undefined -rpath /nonexistent ./libfoo.la ./libbar.la ./libboth.la], [ignore],[stdout],[ignore]) AT_CHECK([grep 'lt_inlikely_existing_lib.*lt_inlikely_existing_lib' stdout], [1],[ignore],[ignore]) diff --git a/tests/link-order.at b/tests/link-order.at index c12ba0b..0122a45 100644 --- a/tests/link-order.at +++ b/tests/link-order.at @@ -100,7 +100,7 @@ EOF prefix=`eval echo \\$prefix_$i` $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c src/main_$i.c -o src/main_$i.lo - AT_CHECK($LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o src/main_$i src/main_$i.lo -L$prefix/lib -la, + AT_CHECK($LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o src/main_$i$EXEEXT src/main_$i.lo -L$prefix/lib -la, [0], [ignore], [ignore]) LT_AT_EXEC_CHECK([src/main_$i]) done diff --git a/tests/link-order2.at b/tests/link-order2.at index 8e5712f..d5e891a 100644 --- a/tests/link-order2.at +++ b/tests/link-order2.at @@ -119,11 +119,11 @@ for type_of_depdepl in libtool non-libtool; do static=-all-static $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS $static -o liba1.la a1.lo -rpath $libdir $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS $static -o libb.la b.lo liba1.la -rpath $libdir - AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS $static -o main main.$OBJEXT libb.la -la0], + AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS $static -o main$EXEEXT main.$OBJEXT libb.la -la0], [], [ignore], [ignore]) LT_AT_EXEC_CHECK([./main]) # Now test that if we reverse the link order, the program fails. - AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS $static -o wrong main.$OBJEXT -la0 libb.la], + 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]) @@ -131,8 +131,8 @@ for type_of_depdepl in libtool non-libtool; do $LIBTOOL --mode=install cp liba1.la $libdir/liba1.la $LIBTOOL --mode=install cp libb.la $libdir/libb.la - $LIBTOOL --mode=install cp main $bindir/main - $LIBTOOL --mode=install cp wrong $bindir/wrong + $LIBTOOL --mode=install cp main$EXEEXT $bindir/main$EXEEXT + $LIBTOOL --mode=install cp wrong$EXEEXT $bindir/wrong$EXEEXT $LIBTOOL --mode=clean rm -f liba1.la libb.la LT_AT_EXEC_CHECK([$bindir/main]) if test $shared_fails,$static != yes,; then diff --git a/tests/lt_dladvise.at b/tests/lt_dladvise.at index b76746c..60385a6 100644 --- a/tests/lt_dladvise.at +++ b/tests/lt_dladvise.at @@ -362,7 +362,7 @@ for module in $dlopenable; do modules="${modules+$modules }-dlopen lib$module.la" done -AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main main.$OBJEXT $preloaded $modules $LIBLTDL], +AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT $preloaded $modules $LIBLTDL], [], [ignore], [ignore]) # Remove loadable libpreload module, so we know it is the preloaded module diff --git a/tests/lt_dlexit.at b/tests/lt_dlexit.at index e9de5c6..8d0b728 100644 --- a/tests/lt_dlexit.at +++ b/tests/lt_dlexit.at @@ -149,7 +149,7 @@ AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o modb1.la b1.lo \ # TODO: test -dlpreopen for dlopen in -dlopen; do - AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main main.$OBJEXT \ + AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT \ $dlopen modb1.la $LIBLTDL], [], [ignore], [ignore]) LT_AT_NOINST_EXEC_CHECK([./main], [-dlopen modb1.la]) done diff --git a/tests/need_lib_prefix.at b/tests/need_lib_prefix.at index d1f5dc6..90f3a60 100644 --- a/tests/need_lib_prefix.at +++ b/tests/need_lib_prefix.at @@ -164,7 +164,7 @@ AT_CHECK([$LIBTOOL --mode=link $CC -module -avoid-version $CFLAGS $LDFLAGS -o fo [], [ignore], [ignore]) AT_CHECK([$LIBTOOL --mode=link $CC -module -avoid-version $CFLAGS $LDFLAGS -o libfoo2.la foo2.lo -rpath $instdir/lib], [], [ignore], [ignore]) -AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main main.$OBJEXT -dlpreopen foo1.la -dlpreopen libfoo2.la $LIBLTDL], +AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT -dlpreopen foo1.la -dlpreopen libfoo2.la $LIBLTDL], [], [ignore], [ignore]) LT_AT_NOINST_EXEC_CHECK([./main], [-dlopen foo1.la -dlopen libfoo2.la], @@ -178,7 +178,7 @@ $LIBTOOL --mode=install cp libfoo2.la $instdir/lib/libfoo2.la # Install the binary mkdir $instdir/bin -$LIBTOOL --mode=install cp main $instdir/bin/main +$LIBTOOL --mode=install cp main$EXEEXT $instdir/bin/main$EXEEXT LT_AT_EXEC_CHECK([$instdir/bin/main], [], [expout], []) diff --git a/tests/runpath-in-lalib.at b/tests/runpath-in-lalib.at index 3f22b01..4a11e83 100644 --- a/tests/runpath-in-lalib.at +++ b/tests/runpath-in-lalib.at @@ -52,7 +52,7 @@ AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la a.lo -rpath $libd [], [ignore], [ignore]) AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libb.la b.lo -rpath $libdir liba.la], [], [ignore], [ignore]) -AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m m.$OBJEXT libb.la], +AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m$EXEEXT m.$OBJEXT libb.la], [], [ignore], [ignore]) AT_CHECK([$LIBTOOL --mode=install cp liba.la $libdir/liba.la], [], [ignore], [ignore]) AT_CHECK([$LIBTOOL --mode=install cp libb.la $libdir/libb.la], [], [ignore], [ignore]) diff --git a/tests/search-path.at b/tests/search-path.at index 929d2dd..e765724 100644 --- a/tests/search-path.at +++ b/tests/search-path.at @@ -43,9 +43,9 @@ eval `$LIBTOOL --config | $EGREP '^(sys_lib_search_path_spec)='` eval sys_lib_search_path=\"$sys_lib_search_path_spec\" no_libz=: for path in $sys_lib_search_path; do - if $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main main.$OBJEXT -L$path -lz + if $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT -L$path -lz then - AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main main.$OBJEXT -lz], + AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT -lz], [], [ignore], [ignore]) no_libz=false break diff --git a/tests/shlibpath.at b/tests/shlibpath.at index 8656bad..658bfd8 100644 --- a/tests/shlibpath.at +++ b/tests/shlibpath.at @@ -1,6 +1,6 @@ # shlibpath.at -- Test shlibpath settings -*- Autotest -*- # -# Copyright (C) 2006 Free Software Foundation, Inc. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc. # Written by Ralf Wildenhues, 2006 # # This file is part of GNU Libtool. @@ -35,9 +35,9 @@ $LIBTOOL --mode=clean rm -f liba.la rm -f sub/lib/liba.la $CC $CPPFLAGS $CFLAGS -c m.c -AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m m.$OBJEXT -Lsub/lib -la -R`pwd`/sub/lib], +AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m$EXEEXT m.$OBJEXT -Lsub/lib -la -R`pwd`/sub/lib], [], [ignore], [ignore]) -AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m2 m.$OBJEXT -Lsub/lib -la], +AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m2$EXEEXT m.$OBJEXT -Lsub/lib -la], [], [ignore], [ignore]) LT_AT_MVDIR([sub], [moved]) diff --git a/tests/static.at b/tests/static.at index 6c91b1f..575c227 100644 --- a/tests/static.at +++ b/tests/static.at @@ -177,7 +177,7 @@ func_test_exec () LT_AT_EXEC_CHECK([./m$st]) # For some per-deplib flag combinations there may be no installed program, # because liba2 is not yet installed. - if test -f "$bindir/m$st"; then + if test -f "$bindir/m${st}$EXEEXT"; then LT_AT_EXEC_CHECK([$bindir/m$st]) fi done @@ -197,7 +197,7 @@ func_test_exec_fail () LT_AT_EXEC_CHECK([./m$st], [1], [], [ignore], [|| (exit 1)]) # For some per-deplib flag combinations there may be no installed program, # because liba2 is not yet installed. - if test -f "$bindir/m$st"; then + if test -f "$bindir/m${st}$EXEEXT"; then LT_AT_EXEC_CHECK([$bindir/m$st], [1], [], [ignore], [|| (exit 1)]) fi done @@ -259,7 +259,7 @@ for withdep in no yes; do # global static flags. for st in -static -static-libtool-libs $can_link_all_static; do - AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS $st -o m$st m.$OBJEXT \ + AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS $st -o m${st}$EXEEXT m.$OBJEXT \ -L$libdir1 -la1 a2/liba2.la -L$libdir3 -R$libdir3 -la3], [0], [ignore], [ignore]) done @@ -267,39 +267,39 @@ for withdep in no yes; do # per-deplib static/shared flags. # also try a bit redundant flags, and shuffled order (for run paths check). if $per_deplib; then - AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m1 m.$OBJEXT \ + AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m1$EXEEXT m.$OBJEXT \ -L$libdir1 -Bstatic -la1 -Bdynamic a2/liba2.la -L$libdir3 -R$libdir3 -la3], [0], [ignore], [ignore]) - AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m2 m.$OBJEXT \ + AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m2$EXEEXT m.$OBJEXT \ -L$libdir1 -la1 -Bstatic a2/liba2.la -Bdynamic -L$libdir3 -R$libdir3 -la3], [0], [ignore], [ignore]) - AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m3 m.$OBJEXT \ + AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m3$EXEEXT m.$OBJEXT \ -L$libdir1 -la1 a2/liba2.la -L$libdir3 -Bstatic -la3 -Bdynamic], [0], [ignore], [ignore]) - AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m12 m.$OBJEXT \ + AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m12$EXEEXT m.$OBJEXT \ -L$libdir1 -Bstatic -la1 a2/liba2.la -Bdynamic -L$libdir3 -R$libdir3 -la3], [0], [ignore], [ignore]) - AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m13 m.$OBJEXT \ + AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m13$EXEEXT m.$OBJEXT \ -L$libdir1 -Bstatic -la1 -Bdynamic a2/liba2.la \ -L$libdir3 -Bstatic -la3 -Bdynamic], [0], [ignore], [ignore]) - AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m31 m.$OBJEXT \ + AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m31$EXEEXT m.$OBJEXT \ -L$libdir3 -Bstatic -la3 -Bdynamic a2/liba2.la \ -L$libdir1 -Bstatic -la1 -Bdynamic], [0], [ignore], [ignore]) - AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m23 m.$OBJEXT \ + AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m23$EXEEXT m.$OBJEXT \ -L$libdir1 -la1 -Bstatic a2/liba2.la -Bdynamic \ -L$libdir3 -Bstatic -la3 -Bdynamic], [0], [ignore], [ignore]) - AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m123 m.$OBJEXT \ + AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m123$EXEEXT m.$OBJEXT \ -L$libdir1 -Bstatic -la1 a2/liba2.la -L$libdir3 -la3 -Bdynamic], [0], [ignore], [ignore]) - AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m123a m.$OBJEXT \ + AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m123a$EXEEXT m.$OBJEXT \ -L$libdir1 -Bstatic -la1 -Bdynamic -Bstatic a2/liba2.la -Bdynamic \ -Bstatic -L$libdir3 -la3 -Bdynamic], [0], [ignore], [ignore]) dnl # This usually fails. So don't do it. - dnl AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m123b m.$OBJEXT \ + dnl AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m123b$EXEEXT m.$OBJEXT \ dnl -L$libdir1 -Bstatic -la1 a2/liba2.la -L$libdir3 -la3], dnl [0], [ignore], [ignore]) fi @@ -308,12 +308,12 @@ for withdep in no yes; do # We can't install any program that links dynamically against liba2. for st in -static -static-libtool-libs $can_link_all_static `$per_deplib && echo 2 12 23 123 123a`; do echo "# m$st" - AT_CHECK([$LIBTOOL --mode=install cp m$st $bindir/m$st], [0], [ignore], [stderr]) + AT_CHECK([$LIBTOOL --mode=install cp m${st}$EXEEXT $bindir/m${st}$EXEEXT], [0], [ignore], [stderr]) if $have_static; then AT_CHECK([$EGREP 'relinking|has not been installed' stderr], [1], [], []) fi done - dnl AT_CHECK([$LIBTOOL --mode=install cp m123b $bindir/m123b], [0], [ignore], [ignore]) + dnl AT_CHECK([$LIBTOOL --mode=install cp m123b$EXEEXT $bindir/m123b$EXEEXT], [0], [ignore], [ignore]) ### Run each program once so that relinking has happened. @@ -371,7 +371,7 @@ AT_DATA([a.c], ]]) AT_CHECK([$CC $CPPFLAGS $CFLAGS -c a.c], [], [ignore]) -AT_CHECK([$LIBTOOL --mode=link --tag=CC ./ccache $CC $CFLAGS $LDFLAGS -all-static a.$OBJEXT -o a], +AT_CHECK([$LIBTOOL --mode=link --tag=CC ./ccache $CC $CFLAGS $LDFLAGS -all-static a.$OBJEXT -o a$EXEEXT], [], [ignore], [ignore]) AT_CLEANUP diff --git a/tests/stresstest.at b/tests/stresstest.at index 27e7ee9..ee5fd29 100644 --- a/tests/stresstest.at +++ b/tests/stresstest.at @@ -1,6 +1,6 @@ # stresstest.at -- Libtool stress test -*- Autotest -*- # -# Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # Written by Ralf Wildenhues, 2005 # # This file is part of GNU Libtool. @@ -257,12 +257,12 @@ do *) mst=-static ;; esac - LT_AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS $st -o "$rel"main "$rel"main$mst.lo "$rel"sub2/liba.la], + LT_AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS $st -o "$rel"main$EXEEXT "$rel"main$mst.lo "$rel"sub2/liba.la], [0],[ignore],[ignore]) LT_AT_EXEC_CHECK([./main],[0]) for l10 in '' '-export-symbols dlselfsyms' do - LT_AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS $st -o "$rel"sub3/dlself "$rel"sub3/dlself$mst.lo "$rel"sub2/liba.la sub/b.lo -dlopen self $l10], + LT_AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS $st -o "$rel"sub3/dlself$EXEEXT "$rel"sub3/dlself$mst.lo "$rel"sub2/liba.la sub/b.lo -dlopen self $l10], [0],[ignore],[ignore]) LT_AT_EXEC_CHECK([./sub3/dlself],[0]) done diff --git a/tests/template.at b/tests/template.at index cc730ff..1729778 100644 --- a/tests/template.at +++ b/tests/template.at @@ -86,7 +86,7 @@ AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CPPFLAGS $CXXFLAGS $LDFLAGS -o li [0], [ignore], [ignore]) AT_CHECK([$CXX -I. $CPPFLAGS $CXXFLAGS -c prog.cpp], [0], [ignore], [ignore]) -AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CPPFLAGS $CXXFLAGS $LDFLAGS -o prog prog.$OBJEXT libalib.la], +AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CPPFLAGS $CXXFLAGS $LDFLAGS -o prog$EXEEXT prog.$OBJEXT libalib.la], [0], [ignore], [ignore]) LT_AT_EXEC_CHECK([./prog], [0], [ignore], [ignore]) @@ -238,14 +238,14 @@ AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o lib/liba.la [0], [ignore], [ignore]) AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o lib2/libb.la lib2/b.lo], [0], [ignore], [ignore]) -AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o sub/main $main_o lib2/libb.la lib/liba.la], +AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o sub/main$EXEEXT $main_o lib2/libb.la lib/liba.la], [0], [ignore], [ignore]) LT_AT_EXEC_CHECK([./sub/main], [ignore]) # lib convenience if $noskip; then AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o lib2/libb.la lib2/b.lo -rpath /foo], [0], [ignore], [ignore]) - AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o sub/main $main_o lib2/libb.la lib/liba.la], + AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o sub/main$EXEEXT $main_o lib2/libb.la lib/liba.la], [0], [ignore], [ignore]) LT_AT_EXEC_CHECK([./sub/main]) fi @@ -255,7 +255,7 @@ AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o lib/liba.la [0], [ignore], [ignore]) AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o lib2/libb.la lib2/b.lo -rpath /bar], [0], [ignore], [ignore]) -AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o sub/main $main_o lib2/libb.la lib/liba.la], +AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o sub/main$EXEEXT $main_o lib2/libb.la lib/liba.la], [0], [ignore], [ignore]) LT_AT_EXEC_CHECK([./sub/main]) # both convenience, libb depending on liba @@ -263,7 +263,7 @@ AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o lib/liba.la [0], [ignore], [ignore]) AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o lib2/libb.la lib2/b.lo lib/liba.la], [0], [ignore], [ignore]) -AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o sub/main $main_o lib2/libb.la], +AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o sub/main$EXEEXT $main_o lib2/libb.la], [0], [ignore], [ignore]) LT_AT_EXEC_CHECK([./sub/main]) # lib convenience @@ -271,7 +271,7 @@ if $noskip; then AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o lib2/libb.la lib2/b.lo lib/liba.la -rpath /foo], [0], [ignore], [ignore]) - AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o sub/main $main_o lib2/libb.la], + AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o sub/main$EXEEXT $main_o lib2/libb.la], [0], [ignore], [ignore]) LT_AT_EXEC_CHECK([./sub/main]) fi @@ -279,7 +279,7 @@ fi if $noskip; then AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o lib2/libb.la lib2/b.lo lib/liba.la -rpath /bar], [0], [ignore], [ignore]) - AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o sub/main $main_o lib2/libb.la], + AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o sub/main$EXEEXT $main_o lib2/libb.la], [0], [ignore], [ignore]) LT_AT_EXEC_CHECK([./sub/main]) fi diff --git a/tests/testsuite.at b/tests/testsuite.at index 9511c06..96c172b 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -361,7 +361,7 @@ $(LIBTOOL): ]_ARG_DIR[/Makefile cd ]_ARG_DIR[ && CONFIG_SHELL="$(SHELL)" $(SHELL) ./configure $(CONFIGURE_OPTIONS) ltdldemo$(EXEEXT): $(LIBTOOL) module.la ]_ARG_DIR[/libltdlc.la main.lo - $(LTLINK) -o ltdldemo main.lo -dlopen module.la ./]_ARG_DIR[/libltdlc.la + $(LTLINK) -o ltdldemo$(EXEEXT) main.lo -dlopen module.la ./]_ARG_DIR[/libltdlc.la main.lo: $(LIBTOOL) main.c $(LTCOMPILE) -c main.c