]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
tests: skip -Wall -Werror with Tru64 cc in cwrapper test.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 30 Aug 2010 21:04:03 +0000 (23:04 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 30 Aug 2010 21:04:48 +0000 (23:04 +0200)
* tests/cwrapper.at (cwrapper for uninstalled executables):
Use a link test rather than a compile test to flesh out unknown
compiler flags starting with -W; Tru64/OSF1 cc will happily
accept `-Wall -Werror' as indication to pass flags on to
subprocesses.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
tests/cwrapper.at

index 6e5b2018cbfcbdf4eff0b50b8d262b23d5e4b13c..5d7a1dcbd33dbf94ecdaf89e9671ded2b6a711bf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2010-08-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       tests: skip -Wall -Werror with Tru64 cc in cwrapper test.
+       * tests/cwrapper.at (cwrapper for uninstalled executables):
+       Use a link test rather than a compile test to flesh out unknown
+       compiler flags starting with -W; Tru64/OSF1 cc will happily
+       accept `-Wall -Werror' as indication to pass flags on to
+       subprocesses.
+
        tests: avoid getopt-m4sh failures when autom4te is not available.
        * tests/getopt-m4sh.at (_LT_AT_GETOPT_M4SH_SETUP):
        Check $M4SH --version, skip on failure.
index babd91e10e87f7e8c7d254da5f8b0c2ba1eead6e..248c0c0ad07f63c33fcd9e08343fb19b000f873f 100644 (file)
@@ -1,6 +1,6 @@
 # cwrapper.at -- test cwrapper compliance with standards -*- Autotest -*-
 
-#   Copyright (C) 2009 Free Software Foundation, Inc.
+#   Copyright (C) 2009, 2010 Free Software Foundation, Inc.
 #   Written by Charles Wilson, 2009
 #
 #   This file is part of GNU Libtool.
@@ -61,10 +61,10 @@ for restrictive_flags in '-Wall -Werror' '-std=c89 -Wall -Werror' '-std=c99 -Wal
   chmod +x libtool
   LIBTOOL=./libtool
 
-  # make sure $restrictive_flags do not cause a failure
+  # Make sure $restrictive_flags do not cause a failure
   # themselves (e.g. because a non-gcc compiler doesn't
-  # understand them)
-  $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c trivial.c || continue
+  # understand them).  Tru64 cc only fails when linking.
+  $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS trivial.c || continue
 
   AT_CHECK([$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c liba.c],
            [], [ignore], [ignore])
@@ -111,10 +111,10 @@ for debugwrapper_flags in '-DLT_DEBUGWRAPPER'; do
     < "$orig_LIBTOOL" > ./libtool
   LIBTOOL=./libtool
 
-  # make sure $debugwrapper_flags do not cause a failure
+  # Make sure $debugwrapper_flags do not cause a failure
   # themselves (e.g. because a non-gcc compiler doesn't
-  # understand them)
-  $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c trivial.c || continue
+  # understand them).  Tru64 cc only fails when linking.
+  $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS trivial.c || continue
 
   AT_CHECK([$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c liba.c],
            [], [ignore], [ignore])