]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in: Don't suppress output of PIC mode compile if
authorScott James Remnant <scott@netsplit.com>
Fri, 23 Jan 2004 06:05:27 +0000 (06:05 +0000)
committerScott James Remnant <scott@netsplit.com>
Fri, 23 Jan 2004 06:05:27 +0000 (06:05 +0000)
-no-suppress option is given.
* doc/libtool.texi (Invoking libtool): Document it.
* NEWS: Updated.

ChangeLog
doc/libtool.texi
ltmain.in

index 611fdb4a7ec8641f12569f64459e9d88df316934..34b4d7b9dca955f6e9afcc5c41d3aef1d1f56210 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2004-01-23  Gary V. Vaughan  <gary@gnu.org>
+                                                                               
+       * ltmain.in: Don't suppress output of PIC mode compile if
+       -no-suppress option is given.
+       * doc/libtool.texi (Invoking libtool): Document it.
+       * NEWS: Updated.
+
 2004-01-23  Scott James Remnant  <scott@netsplit.com>
 
        * libltdl/ltdl.c (lt_dlerror): change return value when
index a63cfdf86a414ce9a9b3e21f9350be95108ce571..c03ec084d8156640e4fa8350c984cf80462120a9 100644 (file)
@@ -1153,6 +1153,12 @@ linker flags with @samp{-Wl,@var{flag}} and @samp{-Xlinker @var{flag}}.
 You can also pass compile specific flags using @samp{-Wc,@var{flag}}
 and @samp{-Xcompiler @var{flag}}.
 
+If both PIC and non-PIC objects are being built, libtool will normally
+supress the compiler output for the PIC object compilation to save
+showing very similar, if not identical duplicate output for each
+object.  If the @samp{-no-suppress} option is given in compile mode,
+libtool will show the compiler output for both objects.
+
 If the @samp{-static} option is given, then a @samp{.o} file is built,
 even if libtool was configured with @samp{--disable-static}.
 
index 6a6a053eb63d615e96acb9772f8c74add8785a4d..13a66ea2b1220da2a11b61ce577552dbd0f6edbf 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -373,6 +373,7 @@ if test -z "$show_help"; then
     # Get the compilation command and the source file.
     base_compile=
     srcfile="$nonopt"  #  always keep a non-empty value in "srcfile"
+    suppress_opt=yes
     suppress_output=
     arg_mode=normal
     libobj=
@@ -410,6 +411,11 @@ if test -z "$show_help"; then
          continue
          ;;
 
+       -no-suppress)
+         suppress_opt=no
+         continue
+         ;;
+
        -Xcompiler)
          arg_mode=arg  #  the next one goes into the "base_compile" arg list
          continue      #  The current "srcfile" will either be retained or
@@ -736,7 +742,9 @@ pic_object='$objdir/$objname'
 EOF
 
       # Allow error messages only from the first compilation.
-      suppress_output=' >/dev/null 2>&1'
+      if test "$suppress_opt" = yes; then
+        suppress_output=' >/dev/null 2>&1'
+      fi
     else
       # No PIC object so indicate it doesn't exist in the libtool
       # object file.