[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tests: skip -Wall -Werror with Tru64 cc in cwrapper test.
From: |
Ralf Wildenhues |
Subject: |
tests: skip -Wall -Werror with Tru64 cc in cwrapper test. |
Date: |
Mon, 30 Aug 2010 23:06:25 +0200 |
User-agent: |
Mutt/1.5.20 (2010-04-22) |
http://autobuild.josefsson.org/libtool/log-201008291316239205000.txt
Don't you love those permissive compilers where only the linker fails
later with:
libtool: link: /opt/fsw/bin/cc -g -Wall -Werror -o .libs/usea usea.o
./.libs/liba.so -rpath /foo
Invalid flag usage: Wall, -Wx,-option must appear after -_SYSTYPE_SVR4
ld: Usage: ld [options] file [...]
stdout:
./../libtool/tests/cwrapper.at:77: exit code was 1, expected 0
Committed.
Cheers,
Ralf
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.
diff --git a/tests/cwrapper.at b/tests/cwrapper.at
index babd91e..248c0c0 100644
--- a/tests/cwrapper.at
+++ b/tests/cwrapper.at
@@ -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])
- tests: skip -Wall -Werror with Tru64 cc in cwrapper test.,
Ralf Wildenhues <=