]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in: Don't suppress output of PIC mode compile if
authorGary V. Vaughan <gary@gnu.org>
Tue, 7 Oct 2003 17:13:42 +0000 (17:13 +0000)
committerGary V. Vaughan <gary@gnu.org>
Tue, 7 Oct 2003 17:13:42 +0000 (17:13 +0000)
-no-suppress option is given.
* doc/libtool.texi (Invoking libtool): Document it.
* NEWS: Updated.

ChangeLog
NEWS
doc/libtool.texi
ltmain.in

index d0fc122d046d4647ee40b3ab5c69dc8ce9fbcbba..47a36515237ae704dca613cd2d9a12d148e8c655 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-10-07  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.
+
 2003-10-07  Marcus Comstedt  <marcus@mc.pp.se>
 
        * m4/libtool.m4 [amigaos-ppc, amigaos-m68k]: Differentiate between
diff --git a/NEWS b/NEWS
index 01ba95454c90d1ec1b7c306d843c12ff5d118228..0a939fe310a4646823337c35d0fe5bf77d174b6d 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,8 @@
 NEWS - list of user-visible changes between releases of GNU Libtool
 
 New in 1.5b: 2003-??-??; CVS version 1.5a, Libtool team:
+* -no-suppress in compile mode shows compiler output for both PIC and non-PIC
+  object compilation.
 * Shared objects (.lo) are no longer created when `-static' is passed in
   compile mode.
 * New compile mode option `-shared' prevents creation of static objects (.o).
index 643093e4d0848a8e57bfaa1bb021228651d17b43..37bf4e14aee6d593c02597567787a56d375a59ef 100644 (file)
@@ -1152,6 +1152,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
+suppress 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 only a @samp{.o} file is
 built, even if libtool was configured with @samp{--disable-static}.
 
index 5ce32f093c412711ce42ddcf1d79d7be24f77997..f79d11f8894143f70981578922caf34c28e1c863 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -357,6 +357,7 @@ exec_cmd=
     # 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=
@@ -414,6 +415,11 @@ exec_cmd=
          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
@@ -721,7 +727,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.
@@ -6235,6 +6243,7 @@ Compile a source file into a libtool library object.
 This mode accepts the following additional options:
 
   -o OUTPUT-FILE    set the output file name to OUTPUT-FILE
+  -no-suppress      do not suppress compiler output for multiple passes  
   -prefer-pic       try to building PIC objects only
   -prefer-non-pic   try to building non-PIC objects only
   -shared           do not build a \`.o' file suitable for static linking