From 331b0b57a5567d33faac72d8fb170e67962ab987 Mon Sep 17 00:00:00 2001 From: Ralph Schleicher Date: Tue, 7 Oct 2003 16:32:58 +0000 Subject: [PATCH] * doc/libtool.texi (Compile mode): Be more specific about the effect of `-static'. * ltmain.in: Do not create `.lo' objects when `-static' is specified. * NEWS: Updated. --- ChangeLog | 8 ++++++++ NEWS | 2 ++ doc/libtool.texi | 4 ++-- ltmain.in | 9 +++++---- 4 files changed, 17 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 894ceb6ef..67c50e150 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2003-10-07 Ralph Schleicher + + * doc/libtool.texi (Compile mode): Be more specific about the + effect of `-static'. + * ltmain.in: Do not create `.lo' objects when `-static' is + specified. + * NEWS: Updated. + 2003-10-07 Gary V. Vaughan * doc/libtool.texi (Invoking libtool): Updated. diff --git a/NEWS b/NEWS index f6e6be4e9..9a60ef329 100644 --- 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: +* Shared objects (.lo) are no longer created when `-static' is passed in + compile mode. * libtoolize installs libtool.m4 (and ltdl.m4 if used) to AC_CONFIG_M4_DIR. * Mode inferrence removed, shorthand for choosing modes added. * Specifying -allow-undefined is now an error. diff --git a/doc/libtool.texi b/doc/libtool.texi index f0aa0d328..46db6360d 100644 --- a/doc/libtool.texi +++ b/doc/libtool.texi @@ -1152,8 +1152,8 @@ 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 the @samp{-static} option is given, then a @samp{.o} file is built, -even if libtool was configured with @samp{--disable-static}. +If the @samp{-static} option is given, then only a @samp{.o} file is +built, even if libtool was configured with @samp{--disable-static}. Note that the @samp{-o} option is now fully supported. It is emulated on the platforms that don't support it (by locking and moving the diff --git a/ltmain.in b/ltmain.in index c2d1a2191..6ba620e70 100644 --- a/ltmain.in +++ b/ltmain.in @@ -389,6 +389,7 @@ exec_cmd= ;; -static) + build_libtool_libs=no build_old_libs=yes continue ;; @@ -879,6 +880,9 @@ EOF fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static + # See comment for -static flag below, for more details. + compile_command="$compile_command $link_static_flag" + finalize_command="$finalize_command $link_static_flag" fi else if test -z "$pic_flag" && test -n "$link_static_flag"; then @@ -1161,10 +1165,7 @@ EOF case $arg in -all-static) - if test -n "$link_static_flag"; then - compile_command="$compile_command $link_static_flag" - finalize_command="$finalize_command $link_static_flag" - fi + # The effects of -all-static are defined in a previous loop. continue ;; -- 2.47.2