libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make -Wc,foo behave like -Xcompiler foo in link mode.


From: Peter O'Gorman
Subject: Re: Make -Wc,foo behave like -Xcompiler foo in link mode.
Date: Sun, 6 Sep 2009 20:35:33 -0700


On Sep 6, 2009, at 2:44 AM, Ralf Wildenhues wrote:


   Add testsuite exposure for passing of compiler and linker flags.

   * tests/flags.at (passing flags through libtool): New file, new
   test, for bug fixed in previous commit.
   * Makefile.am (TESTSUITE_AT): Add tests/flags.at.

+
+for tag in CC CXX F77 FC; do
+  if $LIBTOOL --tag=$tag 2>&1 | grep 'unknown tag'; then
+    continue
+  fi

Hi Ralf,

I get test failures for this test on a darwin system with no fortran compiler installed. The available tags in the libtool script that gets built always contains all tags:
# The names of the tagged configurations supported by this script.
available_tags="CXX F77 FC GCJ RC "

So the test fails with:
./flags.at:63: $LIBTOOL --tag=$tag --mode=compile $compile -c $source
stderr:
i686-apple-darwin9-gcc-4.0.1: a.f: Fortran compiler not installed on this system
stdout:
libtool: compile:  gcc -g -O2 -c a.f  -o .libs/a.o
./flags.at:63: exit code was 1, expected 0
20. flags.at:24: 20. passing flags through libtool (flags.at:24): FAILED (flags.
at:63)


Why available_tags has tags for compilers that don't exist, I do not remember, but it looks like you need to check that the compiler exists (a.la LT_AT_TAG) in this test.

Thanks,
Peter
--
Peter O'Gorman
http://pogma.com






reply via email to

[Prev in Thread] Current Thread [Next in Thread]