]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
tests: reloadable objects do not work on MSVC, SKIP test.
authorPeter Rosin <peda@lysator.liu.se>
Wed, 22 Sep 2010 07:58:47 +0000 (09:58 +0200)
committerPeter Rosin <peda@lysator.liu.se>
Wed, 22 Sep 2010 07:58:47 +0000 (09:58 +0200)
* libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS)
[cygwin, mingw, pw32, cegcc] <cl*, reload_cmds>: Indicate that
reloadable objects do not work.
* tests/duplicate_conv.at: Skip last test if reloadable
objects do not work.
* doc/libtool.texi (libtool script contents) <reload_cmds>:
Document how to indicate that reloadable objects do not work.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
ChangeLog
doc/libtool.texi
libltdl/m4/libtool.m4
tests/duplicate_conv.at

index e011a9e1d7a10009cb5cfc879d80da981c2cfbc7..7ecc32560e2b2f38e5c9f9e9f71481079713e967 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2010-09-22  Peter Rosin  <peda@lysator.liu.se>
+
+       tests: reloadable objects do not work on MSVC, SKIP test.
+       * libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS)
+       [cygwin, mingw, pw32, cegcc] <cl*, reload_cmds>: Indicate that
+       reloadable objects do not work.
+       * tests/duplicate_conv.at: Skip last test if reloadable
+       objects do not work.
+       * doc/libtool.texi (libtool script contents) <reload_cmds>:
+       Document how to indicate that reloadable objects do not work.
+
 2010-09-21  Peter Rosin  <peda@lysator.liu.se>
 
        msvc: eliminate spaces in the library search path.
index 0d3ff7f19bdb2292213d8e6c6d2b0d36d28ea894..768887171dce5f6f552c7c5afef8323603841598 100644 (file)
@@ -6767,7 +6767,8 @@ replaced by the toolchain format of @code{@@OUTPUT@@}.  Normally disabled
 
 @defvar reload_cmds
 @defvarx reload_flag
-Commands to create a reloadable object.
+Commands to create a reloadable object.  Set @code{reload_cmds} to
+@samp{false} on systems that cannot create reloadable objects.
 @end defvar
 
 @defvar runpath_var
index a048b1f1c4d092b29ed322e1defef186636f64f5..d8125842f0a8a5e3a7d2d30a08f8909befa9aeca 100644 (file)
@@ -3081,6 +3081,11 @@ case $reload_flag in
 esac
 reload_cmds='$LD$reload_flag -o $output$reload_objs'
 case $host_os in
+  cygwin* | mingw* | pw32* | cegcc*)
+    if test "$GCC" != yes; then
+      reload_cmds=false
+    fi
+    ;;
   darwin*)
     if test "$GCC" = yes; then
       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
index 83d5144790a4279bc880be1dc36473efa86499f6..77496d0ebd866ecce328739dec71ee75a31f8c9b 100644 (file)
@@ -25,6 +25,8 @@
 AT_SETUP([duplicate convenience archive names])
 AT_KEYWORDS([libtool])
 
+eval `$LIBTOOL --config | sed -n '/^reload_cmds=/,/^$/p'`
+
 # We create two convenience archives with the same name, and _also_
 # containing an object with the same name.  This is necessary to detect
 # the failure with both 1.5.22 and HEAD, since the latter does not (did
@@ -75,6 +77,8 @@ AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT
 LT_AT_EXEC_CHECK([./main],[0],[ignore],[ignore])
 $LIBTOOL --mode=clean rm -f libcee.la
 
+AT_CHECK([test "x$reload_cmds" = xfalse && exit 77], [1])
+
 # 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])